plotDens {flowDensity} | R Documentation

## 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(obj, channels,node=NA ,  col, main, xlab, ylab, pch=".", ...)

### Arguments

`obj` | a 'FlowFrame','GatingHierarchy' or 'cellPopulation' object.
`channels` | a vector of two channel names or their corresponding indices in the 'flow.frame'.
`node` | Only used if gatingHierarchy is provided as an input.It subtractes the flowFrame from the node of gatingHierarchy. see getNodes() in flowWorkspace.
`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.

### Author(s)

Mehrnoush Malek <mmalekes@bccrc.ca> Jafar Taghiyar <jtaghiyar@bccrc.ca>

### Examples

    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"))

[Package flowDensity version 1.14.0 Index]