Learn R Programming

ggcyto (version 1.0.5)

ggcyto-class: Create a new ggcyto plot

Description

ggcyto() initializes a ggcyto object that inherits ggplot class. Similarly the + operator can be used to add layers to the existing ggcyto object.

Usage

ggcyto(data = NULL, ...)
"ggcyto"(data = NULL, mapping = aes(), ...)

Arguments

data
default cytometry data set.(flowSet,flowFrame)
...
other arguments passed to specific methods

Value

ggcyto object

Details

To invoke ggcyto:
  • ggcyto(fs, aes(x, y, ))

Examples

Run this code
data(GvHD)
fs <- GvHD[1:3]
#construct the `ggcyto` object (inherits from `ggplot` class)
p <- ggcyto(fs, aes(x = `FSC-H`))
p + geom_histogram()

# display density/area
p + geom_density()
p + geom_area(stat = "density")

# 2d scatter plot
p <- ggcyto(fs, aes(x = `FSC-H`, y =  `SSC-H`))
p + geom_hex(bins = 128)

Run the code above in your browser using DataLab