ggcyto.GatingSet: Create a new ggcyto plot from a GatingSet

Description Usage Arguments Value Examples

View source: R/ggcyto_GatingSet.R

Description

Create a new ggcyto plot from a GatingSet

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'GatingSet'
ggcyto(data, mapping, subset = "_parent_", ...)

## S3 method for class 'GatingSetList'
ggcyto(data, ...)

## S3 method for class 'GatingHierarchy'
ggcyto(data, ...)

Arguments

data

GatingSet to plot

mapping

default list of aesthetic mappings (these can be colour, size, shape, line type – see individual geom functions for more details)

subset

character that specifies the node path or node name in the GatingSet. Default is "_parent_", which will be substitute with the actual node name based on the geom_gate layer to be added later.

...

ignored

Value

a ggcyto_GatingSet object which is a subclass of ggcyto_flowSet class.

Examples

1
2
3
4
5
6
7
dataDir <- system.file("extdata",package="flowWorkspaceData")
gs <- load_gs(list.files(dataDir, pattern = "gs_manual",full = TRUE))
# 2d plot 
ggcyto(gs, aes(x = CD4, y = CD8), subset = "CD3+") + geom_hex(bins = 64)

# 1d plot
ggcyto(gs, aes(x = CD4), subset = "CD3+")  + geom_density()

ggcyto documentation built on May 2, 2018, 4:09 a.m.