## S3 method for class 'GatingSet'
ggcyto(data, mapping, subset = "_parent_", ...)
## 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.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(ggcyto)
Loading required package: ggplot2
Loading required package: flowCore
Loading required package: ncdfFlow
Loading required package: flowViz
Loading required package: lattice
Loading required package: RcppArmadillo
Loading required package: BH
Loading required package: flowWorkspace
Loading required package: gridExtra
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/ggcyto/ggcyto.GatingSet.Rd_%03d_medium.png", width=480, height=480)
> ### Name: ggcyto.GatingSet
> ### Title: Create a new ggcyto plot from a GatingSet
> ### Aliases: ggcyto.GatingHierarchy ggcyto.GatingSet
>
> ### ** Examples
>
> dataDir <- system.file("extdata",package="flowWorkspaceData")
> gs <- load_gs(list.files(dataDir, pattern = "gs_manual",full = TRUE))
loading R object...
loading tree object...
Done
> # 2d plot
> ggcyto(gs, aes(x = CD4, y = CD8), subset = "CD3+") + geom_hex(bins = 64)
Warning message:
Removed 4 rows containing missing values (geom_hex).
>
> # 1d plot
> ggcyto(gs, aes(x = CD4), subset = "CD3+") + geom_density()
>
>
>
>
>
> dev.off()
null device
1
>