[.ggobi                package:Rggobi                R Documentation

_O_b_t_a_i_n_s _a _r_e_f_e_r_e_n_c_e _t_o _a _g_g_o_b_i _d_a_t_a_s_e_t

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

     This is a convenient syntax for referring to one or more datasets
     within a ggobi instance, either by index or by name. '[' operator
     returns a list of one or more objects of class 'ggobiDataset',
     while '[[' is used to access a single dataset. These
     'ggobiDataset' objects can be used to refer to the dataset in the
     ggobi instance and the preferred type for the '.data' argument in
     most functions in the GGobi package.

     NOTE: This has changed in release 1.0.0 in order to be more
     consistent with list subsetting in R and it no longer returns the
     element if the index identifies only a single element.

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

     "[.ggobi"(x, ..., drop = FALSE)
     "[[.ggobi"(x, ..., drop = FALSE)

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

       x: the object of class 'ggobi'

     ...: the identifiers for the datasets within the ggobi instance.

    drop: 

_V_a_l_u_e:

     One or more objects of class 'ggobiDataset'. These are opaque
     references to internal C structures and should not be operated on
     directly. Instead, one should use the functions and methods that
     operate on objects of this class.

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

     Duncan Temple Lang

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://www.ggobi.org>

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

     'names.ggobi' 'names.ggobiDataset' 'dim.ggobiDataset'
     'dimnames.ggobiDataset'

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

       g <- ggobi(system.file("data", "flea.xml", package="Rggobi"), args="-noinit")
       g[[1]]

       names(g)
       g[["flea"]]

       dim(g[[1]])
       g$setData(system.file("data", "sat.xml", package="Rggobi"))
       g[[2]]
       g[["SAT scores"]]

