\name{root.hist3D} \alias{root.hist3D} \title{ROOT 3D-Histogram} \description{ Creates a ROOT 3D-histogram for a ROOT tree. } \usage{ root.hist3D(x, treename1 = character(0), treename2 = character(0), treename3 = character(0), logbase = "log2", option = "HIST", canvasname = "Histogram3D", save.as = "", w = 540, h = 540) } \arguments{ \item{x}{object of class \code{\link{DataTreeSet}} or \code{\link{ExprTreeSet}}.} \item{treename1}{name of first tree, must be present in \code{rootfile} of object \code{x}.} \item{treename2}{name of second tree, must be present in \code{rootfile} of object \code{x}.} \item{treename3}{name of third tree, must be present in \code{rootfile} of object \code{x}.} \item{logbase}{usually \dQuote{log2}, or \dQuote{0}, determines if leaf data should be converted to log.} \item{option}{ROOT hist TH3 option, usually one of \dQuote{HIST}, \dQuote{SCAT}, \dQuote{BOX}.} \item{canvasname}{name of ROOT canvas} \item{save.as}{gaphics tye for saving canvas, one of \dQuote{ps}, \dQuote{eps}, \dQuote{pdf}, \dQuote{jpg}, \dQuote{gif}, \dQuote{png}, \dQuote{tiff}} \item{w}{the width of the canvas in pixels.} \item{h}{the height of the canvas in pixels.} } \details{ Creates a ROOT 3D-histogram for trees \code{treename1}, \code{treename2} and \code{treename3} present in \code{rootfile}. By selecting menu \dQuote{File->Save->canvasname.xxx} you can save the figure as e.g. *gif, *.jpg, *.pdf, *.ps or even as C++ macro. By moving the mouse into the middle of the canvas, the cursor changes and you can rotate the 3D-histogram. By selecting menu \dQuote{View->View With->OpenGL} the OpenGL viewer opens, where you can rotate the 3D-histogram interactively. Alternatively, you can save the plot by setting \code{save.as}. However, this will close the canvas immediately after opening it. } \author{Christian Stratowa} \note{ Always select menu item \dQuote{Quit ROOT} from menu \dQuote{File} to close the ROOT canvas, otherwise you are in the CINT C/C++ interpreter from \code{\link{ROOT}}. To exit CINT, you need to type \dQuote{.q}. } \seealso{\code{\link{root.hist1D}}, \code{\link{root.hist2D}}} \examples{ \dontrun{ ## 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.hist3D(data.test3, "TestA1.cel", "TestB2.cel", "TestB1.cel", option="BOX") } } \keyword{device}