Learn R Programming

flowDensity (version 1.6.0)

plotDens: Plot flow cytometry data with density-based colors

Description

Generate a scatter dot plot with colors based on the distribution of the density of the provided channels.

Usage

plotDens(flow.frame, channels, col, main, xlab, ylab, pch=".", s=FALSE, outdir, file.name, devn=TRUE, ...)

Arguments

flow.frame
a 'FlowFrame' object.
channels
a vector of two channel names or their corresponding indices in the 'flow.frame'.
s
logical variable, if TRUE the output graph is saved.
outdir
an optional string value specifying the output directory for saving the graph if 's' is TRUE.
file.name
an optional string value used as the name for the saved file.
devn
by default the output graph plots in a new device using dev.new() function. If 'devn' is FALSE, plots the output on the current device.
col
A specification for the default plotting color: see '?par'.
main
an overall title for the plot: see '?plot'
xlab
a title for the x axis: see '?plot'
ylab
a title for the y axis: see '?plot'
pch
Either an integer specifying a symbol or a single character to be used as the default in plotting points: see '?par'.
...
can be used to provide desired arguments for the plot() function used to plot the output results.

Value

a scatter dot plot with density-based colors.

Examples

Run this code

data_dir <- system.file("extdata", package = "flowDensity")
load(list.files(pattern = 'sampleFCS_1', data_dir, full = TRUE))
#Plot CD3 vs. CD19 to see the distribution of cell populations and their density
plotDens(f,c("V450-A","PerCP-Cy5-5-A"))

Run the code above in your browser using DataLab