
Last chance! 50% off unlimited learning
Sale ends in
plotmap (object, x = "x", y = "y", func = mean, cond = NULL,
z = NULL, do.print = FALSE, print.args = NULL, trellis.args = NULL,
...)
map.identify (object, x = "x", y = "y", ...)
hyperSpec
object@data
to be
used as x and y coordinatesz
is not given.| cond
in the levelplot
formula). May also be the name of the extra data column to be used for
conditioning.z
is a
factor
, and the default color scheme (returned by
matlab.palette
) is used, one color per level of z
is used, otheTRUE
, the lattice object is printed with the
further arguments given in print.args
before returning it.levelplot
.func
by
plotmap
. map.identify
passes all further arguments to plotmap
.
plotmap
calculates a grid (via index.grid
) on
which the summary value is displayed with
levelplot
. Arguments to levelplot
can be given in
trellis.args
.
map.identify
calls plotmap
and waits for (left) mouse
clicks on points. The row indices of the
levelplot
background <- apply (chondro, 2, quantile, probs = 0.05)
corrected <- sweep (chondro, 2, background, "-")
plotmap (corrected, func = max)
plotmap (corrected, func = max,
trellis.args = list (col.regions = gray ((100 : 0)/100))
)
dist <- pearson.dist (chondro[[]])
dend <- hclust (dist, method = "ward")
z <- cutree (dend, h = 0.15)
plotmap (chondro, z = z)
plotmap (chondro, z = as.factor (z))
Run the code above in your browser using DataLab