Learn R Programming

albatross (version 0.1-1)

plot.feem: Plot a FEEM object

Description

A thin wrapper around lattice::levelplot, which uses it to plot a 2D fluorescence intensity surface.

Usage

# S3 method for feem
plot(
  x,
  xlab = quote(lambda[em] * ", nm"), ylab = quote(lambda[ex] * ", nm"),
  cuts = 128, col.regions = marine.colours(256), ...
)
# S3 method for feemcube
plot(
  x,
  xlab = quote(lambda[em] * ", nm"), ylab = quote(lambda[ex] * ", nm"),
  cuts = 128, col.regions = marine.colours(256), as.table = TRUE, ...
)

Arguments

x

An FEEM object.

xlab

The x-axis label for the plot, with a sane default.

ylab

The y-axis label for the plot, with a sane default.

cuts

The number of distinct levels the intensity would be divided into, areas between them assined different colours.

col.regions

The palette to take the colours from, a character vector of R colour specifications.

as.table

Whether to draw the panels left to right, top to bottom. (Otherwise they are drawn left to right, bottom to top.)

Passed as-is to levelplot.

Value

A lattice plot object. Its print or plot method will draw the plot on an appropriate plotting device.

See Also

levelplot

Examples

Run this code
# NOT RUN {
  plot(feem(matrix(1:42/42, nrow = 7), 320 + 1:7, 300 + 1:6))
# }

Run the code above in your browser using DataLab