root.density               package:xps               R Documentation

_R_O_O_T _D_e_n_s_i_t_y _P_l_o_t

_D_e_s_c_r_i_p_t_i_o_n:

     Creates a ROOT density plot for one or all ROOT tree(s).

_U_s_a_g_e:

     root.density(x, treename = "*", logbase = "log2", canvasname = "DensityPlot", save.as = "", w = 540, h = 540)

_A_r_g_u_m_e_n_t_s:

       x: object of class 'DataTreeSet' or 'ExprTreeSet'.

treename: name of tree, must be present in 'rootfile' of object 'x'.

 logbase: usually "log2", or "0", determines if leaf data should be
          converted to log.

canvasname: name of ROOT canvas

 save.as: gaphics tye for saving canvas, one of "ps", "eps", "pdf",
          "jpg", "gif", "png", "tiff"

       w: the width of the canvas in pixels.

       h: the height of the canvas in pixels.

_D_e_t_a_i_l_s:

     Creates a ROOT density plot for one or all tree(s) present in
     'rootfile'.

     By selecting menu "File->Save->canvasname.xxx" you can save the
     figure as e.g. *gif, *.jpg, *.pdf, *.ps or even as C++ macro.

     Alternatively, you can save the plot by setting 'save.as'.
     However, this will close the canvas immediately after opening it.

_N_o_t_e:

     Always select menu item "Quit ROOT" from menu "File" to close the
     ROOT canvas, otherwise you are in the CINT C/C++ interpreter from
     'ROOT'. To exit CINT, you need to type ".q".

_A_u_t_h_o_r(_s):

     Christian Stratowa

_S_e_e _A_l_s_o:

     'root.hist1D'

_E_x_a_m_p_l_e_s:

     ## Not run: 
     ## first, load ROOT scheme file and ROOT data file
     scheme.test3 <- root.scheme(paste(.path.package("xps"),"schemes/SchemeTest3.root",sep="/"))
     data.test3 <- root.data(scheme.test3, paste(.path.package("xps"),"rootdata/DataTest3_cel.root",sep="/"))

     root.density(data.test3, "*")
     root.density(data.test3, "TestA1.cel")
     root.density(data.test3, "TestA1.cel", save.as="png")
     ## End(Not run)

