display.GGobiData           package:rggobi           R Documentation

_C_r_e_a_t_e _a _n_e_w _d_i_s_p_l_a_y

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

     Create a new display for the GGobiData object.

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

     display.GGobiData(x, pmode="Scatterplot Display", vars=list(X=names(x)), ...)

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

       x: projection mode to use

   pmode: variables to display, see 'variables.GGobiDisplay' for
          details

    vars: 

     ...: 

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

     This function allows you to create a new display from a GGobiData
     object.  You will need to specify the type of display you want
     ("Scatterplot Display", "Scatterplot Matrix" and  "Parallel
     Coordinates Display" are the most common), and which variables the
     plot should be intialised with.  Specifying more than two
     variables only makes sense for scatterplot matrices and pcps.

     Many of the plots used in GGobi (eg. the tours and densities
     plots) are special modes of the scatterplot display.  You will
     need to create a new scatterplot display, change the projection
     mode to what you want, and then set the variables.  Hopefully this
     will be improved in a future version of rggobi.

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

     Hadley Wickham <h.wickham@gmail.com>

_S_e_e _A_l_s_o:

     'ggobi_display_types' for a list of display types

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

     g <- ggobi(mtcars)
     display(g[1])
     display(g[1], vars=list(X=4, Y=5))
     display(g[1], vars=list(X="drat", Y="hp"))
     display(g[1], "Parallel Coordinates Display")
     ## Not run: 
     display(g[1], "2D Tour")
     display(g[1], "2x1D Tour", list(X=c(1,2,3), Y=c(4,5,6)))
     ## End(Not run) 
     display(g[1], "Scatterplot Matrix")

