flowDens-class {flowClust} | R Documentation |
This method constructs the flowDens
object which is used to generate
a contour or image plot.
## S4 method for signature 'flowClust' density(x, data = NULL, subset = c(1, 2), include = 1:(x@K), npoints = c(100, 100), from = NULL, to = NULL) ## S4 method for signature 'flowClustList' density(x, data = NULL, subset = c(1, 2), include = 1:(x@K), npoints = c(100, 100), from = NULL, to = NULL)
x |
Object returned from |
data |
A matrix, data frame of observations, or object of class
|
subset |
A numeric vector of length two indicating which two variables
are selected for the scatterplot. Alternatively, a character vector
containing the names of the two variables is allowed if |
include |
A numeric vector specifying which clusters are included to compute the density values. By default, all clusters are included. |
npoints |
A numeric vector of size two specifying the number of grid points in x (horizontal) and y (vertical) directions respectively. |
from |
A numeric vector of size two specifying the coordinates of the
lower left point of the grid square. Note that, if this (and |
to |
A numeric vector of size two specifying the co-ordinates of the upper right point of the grid square. |
The flowDens
object returned is to be passed to the plot
method for generating a contour or image plot.
An object of class flowDens
containing the following slots is
constructed:
dx |
A numeric vector of length |
dy |
A numeric vector of
length |
value |
A matrix of size |
Raphael Gottardo <raph@stat.ubc.ca>, Kenneth Lo <c.lo@stat.ubc.ca>