plotLayout              package:Rggobi              R Documentation

_C_r_e_a_t_e_s _a_n_d _a_r_r_a_n_g_e_s _i_n_d_i_v_i_d_u_a_l _p_l_o_t_s _i_n _a _f_l_e_x_i_b_l_e _g_r_i_d _l_a_y_o_u_t.

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

     Using the RGtk to manipulate the widgets and lay them out in
     arbitrary containers is now the preferred way to do this.

     This creates ggobi plots - be they basic or composites of basic
     plots - and lays them out in the cells of a grid specified by the
     caller. All the plots are contained in a single window. This gives
     the R user complete control of the contents of a given
     display/window in a ggobi instance, providing greater flexibility
     than is possible with a graphical interface.

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

     plotLayout(..., mfrow=NULL, cells=NULL, .data = 1, .gobi=getDefaultGGobi(), display=-1)
     gtkCells(r, c)

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

     ...: a collection plot descriptions 

   mfrow: an integer vector of length 2 specifying the number of rows
          and columns  of the grid. Note that not alll cells must be
          filled. 

   cells: a 4 by k matrix in which each column gives the indices of the
          adjacent  cells of the plot

   .gobi: an integer identifying the instance of the ggobi to which the
          data and display  are connected.

       r: the number of rows to use for the cell table

       c: the number of columns to use for the cell table

 display: an integer identifying the display to which the plots should
          be added. If this is omitted, a new display (i.e. window) is
          created.

   .data: the identifier (index,  name or dataset reference) of the
          dataset which is to be used to resolve variable names in the
          specified '.ggobi' (if the descriptions do not contain this
          information) 

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

     The index (as an integer) of the display which was created or to
     which the plots we added.

_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:

     'scatmatrixDescription', 'parallelCoordDescription',
     'ashDescription' 'scatterplotDescription'

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

     ## Not run: 
       plot4 <- ashDescription("tars2")
       plot5 <- scatmatrixDescription("tars1", "tars2", "head") 
       plot6 <- parallelCoordDescription("tars1", "tars2", "head")

       g <- ggobi(system.file("data","flea.xml", package="Rggobi"))
        #
       dpy <- plotLayout(plot4, plot5, mfrow=c(1,2), .gobi = g)

        #
       cl <- gtkCells(2,2)[-3,]
       cl[3,1] <- 1
       plotLayout(plot4, plot5,plot6, mfrow=c(2,2), cells=t(cl))
     ## End(Not run)

