Learn R Programming

xps (version 1.32.0)

hist-methods: Plot Density Estimate

Description

Plot the density estimates for each sample.

Usage

hist(x, which = "", size = 0, transfo = log2, xlab = "log intensity", ylab = "density", names = "namepart", type = "l", col = 1:6, lty = 1:5, add.legend = FALSE, verbose = TRUE, ...)

Arguments

x
object of class DataTreeSet or ExprTreeSet.
which
type of probes to be used, for details see validData.
size
length of sequence to be generated as subset.
transfo
a valid function to transform the data, usually “log2”, or “0”.
xlab
a title for the x axis.
ylab
a title for the y axis.
names
optional vector of sample names.
type
type for the plot.
col
colors to use for the different arrays.
lty
line types to use for the different arrays.
add.legend
logical, if TRUE then a legend will be drawn.
verbose
logical, if TRUE print status information.
...
optional arguments to be passed to plot.

Details

Plots the non-parametric density estimates for each sample.

For names=NULL full column names of slot data will be displayed while for names="namepart" column names will be displayed without name extension. If names is a vector of column names, only these columns will displayed as callplot.

See Also

plotDensity

Examples

Run this code
## load existing 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="/"))

if (interactive()) {
hist(data.test3)
}

Run the code above in your browser using DataLab