root.image {xps} | R Documentation

## ROOT Image

### Description

Creates a ROOT image for a ROOT tree.

### Usage

    root.image(x, treename = character(0), leafname = "fInten", logbase = "log2", option = "COLZ", canvasname = "Image", w = 540, h = 540)

### Arguments

`x` | object of class `DataTreeSet`.
`treename` | name of tree, must be present in `rootfile` of object `x`.
`leafname` | leaf name of tree, usual “fInten” or “fBg”.
`logbase` | usually “log2”, or “0”, determines if leaf data should be converted to log.
`option` | ROOT graph option, usually. one of “COL”, “COLZ”.
`canvasname` | name of ROOT canvas
`w` | the width of the device in pixels.
`h` | the height of the device in pixels.

### Details

Creates a ROOT image for tree `treename` present in `rootfile`.

To zoom-in move the mouse cursor to the x-axis (y-axis) until it changes to a hand and click-drag to select an axis-range. To unzoom move the mouse cursor to the x-axis (y-axis) until it changes to a hand and right-click to select “Unzoom”.

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

### Note

Always select menu item “Quit ROOT” from menu “File” to close the ROOT browser, otherwise you are in the CINT C/C++ interpreter from `ROOT`. To exit CINT, you need to type “.q”.

### Author(s)

Christian Stratowa

### See Also

`image-methods`, `image`

### Examples

    ## 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.image(data.test3, "TestA1.cel")
    ## End(Not run)

[Package xps version 1.0.2 Index]