Description Usage Arguments Details Note Author(s) See Also Examples
Creates a ROOT 1D-graph for a ROOT tree.
1 | root.graph1D(x, treename = character(0), logbase = "log2", option = "P", canvasname = "Graph1D", save.as = "", w = 540, h = 540)
|
x |
object of class |
treename |
name of tree, must be present in |
logbase |
usually “log2”, or “0”, determines if leaf data should be converted to log. |
option |
ROOT TGraph::PaintGraph option, usually one of “P”, “*”, “L”. |
canvasname |
name of ROOT canvas |
save.as |
graphics type 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. |
Creates a ROOT 1D-graph for tree treename
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.
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”.
Christian Stratowa
1 2 3 4 5 6 7 8 | ## 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.graph1D(data.test3, "TestA1.cel")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.