Learn R Programming

plateCore (version 1.30.0)

densityplot: One-dimensional density plots for flowPlates

Description

This function is a modified version of densityplot from the flowViz package that allows for multiple flowFrames per panel. flowViz densityplot plots the density curves in a one per panel style, while the flowPlate densityplot can overlay densities.

Usage

"densityplot"(x, data, xlab, prepanel=prepanel.densityplot.flowPlate, panel = panel.densityplot.flowPlate, as.table=TRUE, filterResult=NULL, ...)

Arguments

x
A formula describing the layout of the plots.
data
A flowPlate.
xlab
Label for the x-axis
prepanel
Lattice-flowViz prepanel function.
panel
Lattice-flowViz panel function.
as.table
Defaults to table layout.
filterResult
filterResult can either take the character string "Negative.Control" and have the negative control wells added to the panels, or if filterResult is a flowFrame then the density curve for the flowFrame will be added to each panel.
...
optional arguments

See Also

flowViz::densityplot

Examples

Run this code
# Load the plateCore package and data
library(plateCore)
data(plateCore)

# Create a flowPlate from the sample data in plateCore
fp <- flowPlate(pbmcPlate,wellAnnotation,plateName="P1")

# Overlay the first 3 flowFrames.  If the groups argument was
# omitted, then the flowFrames would be combined into a single
# density curve.
densityplot(~ `FSC-H`, fp[1:3], groups=name, auto.key=TRUE)

Run the code above in your browser using DataLab