ggplotDens: plots two channels of a flowframe.

Description Usage Arguments Value Examples

View source: R/plotting_functions.R

Description

plots two channels of a flowframe.

Usage

1
ggplotDens(flowfile, channels, ...)

Arguments

flowfile

flowframe to be plotted

channels

a character vector of length 2, must contain channel names in the flowfile.

...

not used at the moment

Value

a ggplot object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
flowfile_path <- system.file("extdata", "B4_18_1.fcs", 
              package = "cyanoFilter",
              mustWork = TRUE)
flowfile <- flowCore::read.FCS(flowfile_path, alter.names = TRUE,
                               transformation = FALSE, emptyValue = FALSE,
                               dataset = 1) 
flowfile_nona <- cyanoFilter::noNA(x = flowfile)
flowfile_noneg <- cyanoFilter::noNeg(x = flowfile_nona)
flowfile_logtrans <- cyanoFilter::lnTrans(x = flowfile_noneg, 
                      c('SSC.W', 'TIME'))
ggplotDens(flowfile_logtrans,
           channels = c("FSC.HLin", "RED.R.HLin"))

fomotis/cyanoFilter documentation built on Aug. 1, 2021, 10:58 p.m.