"variables<-.GGobiDisplay"      package:rggobi      R Documentation

_S_e_t _d_i_s_p_l_a_y _v_a_r_i_a_b_l_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Set display variables with a list of x, y, and z component
     variable indices.

_U_s_a_g_e:

     "variables<-.GGobiDisplay"(x, value)

_A_r_g_u_m_e_n_t_s:

       x: GGobiDisplay object

   value: list with X, Y and Z components listing the variable indices
          to display, either as numeric position or character variable
          name

_D_e_t_a_i_l_s:

     There are three types of variables in GGobi displays: x, y, z,
     which correspond to the labels on the toggle buttons in GGobi. 
     Most plots have a constrained set of possible options. For
     example, in tours you can only set x variables, and you must have
     at least three.  Or in the rotation plot, you need exactly one x,
     y, and z variable.

     Currently, there is no checking done to ensure that you are
     sending a sensible set of variables for the given display type.
     Generally, any invalid choices will be silently ignored.

_A_u_t_h_o_r(_s):

     Hadley Wickham <h.wickham@gmail.com>

_E_x_a_m_p_l_e_s:

     g <- ggobi(mtcars)
     d <- display(g[1], "Parallel Coordinates Display")
     variables(d)
     variables(d) <- list(X=1:8)
     variables(d) <- list(X=c("mpg", "cyl"))
     variables(d)

