addXMLDataset             package:Rggobi             R Documentation

_S_e_r_i_a_l_i_z_e _d_a_t_a_s_e_t _t_o _G_G_o_b_i'_s _X_M_L _f_o_r_m_a_t.

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

     This writes a dataset in the XML format used by GGobi

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

     addXMLDataset(data, name, dom, description = NULL, asElements = TRUE)

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

    data: the dataset to be serialized.

    name: the name to use for the 'name' attribute for the dataset

     dom: the output object to which to write the XML. This is usually
          an object of class 'XMLOutputStream'.

description: an optional string or XML node giving a human-readable
          description of the dataset.

asElements: a logical value indicating whether the individual values
          should be output within <el> </el> nodes or, if 'FALSE',
          simply as space-separated numbers/values.

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

     See 'writeDataXML'.

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

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

     'writeDataXML'

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

     if(require(XML)) {
      data(mtcars)
      dd <- xmlOutputBuffer()
      dd$addTag("ggobidata", close = FALSE)
      addXMLDataset(mtcars, "mtcars", dd, "The mtcars data taken from R")
      dd$closeTag()
      cat(dd$value())
     }

