close.ggobiDisplay          package:Rggobi          R Documentation

_C_l_o_s_e _a_n_d _d_i_s_c_a_r_d _a _g_g_o_b_i _d_i_s_p_l_a_y/_p_l_o_t _w_i_n_d_o_w.

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

     These functions allow one to discard a  display window belonging
     to a ggobi instance.

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

     close.ggobiDisplay(con, ...)
     close.ggobiDisplayDescription(con,...)

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

     con: the 'ggobiDisplay' or 'ggobiDisplayDescription' object that
          identifies the actual display window to be closed.

     ...: ignored but present to be consistent with the definition of
          the generic function.

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

     Note that these are methods rather than functions that can take
     integer values to identify the display  and ggobi.

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

     A logical value indicating whether the close operation was
     successful ('TRUE') or not ('FALSE').

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

     'scatmat.ggobi' 'scatterplot.ggobi' 'parcoords.ggobi'

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

       g <- ggobi(system.file("data", "flea.xml", package="Rggobi"), args="-noinit")
       d <- g$scatmat(1:3)
       close(d)

      
       g$parcoords(1:5)
          # close based on a description, specifically
          # its type and the particular variables
          # in the plot.
       for(i in g$getDisplays(TRUE)) {
        if(names(i$Type) == "Parallel Coordinates") {
          if(!is.na(match("tars1", names(unlist(d$Plots)))))
           close(i)
        }
       }

