Last data update: 2014.03.03

R: overloaded '+' method for ggcyto_gate_layout
+.ggcyto_GatingLayoutR Documentation

overloaded '+' method for ggcyto_gate_layout

Description

It adds the layer specified by 'e2' to each individual ggplot object stored in ggcyto_gate_layout

Usage

## S3 method for class 'ggcyto_GatingLayout'
e1 + e2

## S4 method for signature 'ggcyto_GatingLayout,ANY'
e1 + e2

Arguments

e1

ggcyto_gate_layout

e2

any ggplot layer

Value

a modified ggcyto_gate_layout object

a GatingLayout object

Examples

#autplot for GatingSet
dataDir <- system.file("extdata",package="flowWorkspaceData")
gs <- load_gs(list.files(dataDir, pattern = "gs_manual",full = TRUE))
gh <- gs[[1]]
p <- autoplot(gh)
class(p)
# customize the font size of strip text for each ggcyo plots contained in GatingLayout object
p + theme(strip.text = element_text(size = 14))

Results


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/plus-.ggcyto_GatingLayout.Rd_%03d_medium.png", width=480, height=480)
> ### Name: +.ggcyto_GatingLayout
> ### Title: overloaded '+' method for ggcyto_gate_layout
> ### Aliases: +,ggcyto_GatingLayout,ANY-method +.ggcyto_GatingLayout
> 
> ### ** Examples
> 
> #autplot for GatingSet
> dataDir <- system.file("extdata",package="flowWorkspaceData")
> gs <- load_gs(list.files(dataDir, pattern = "gs_manual",full = TRUE))
loading R object...
loading tree object...
Done
> gh <- gs[[1]]
> p <- autoplot(gh)
> class(p)
[1] "ggcyto_GatingLayout"
attr(,"package")
[1] "ggcyto"
> # customize the font size of strip text for each ggcyo plots contained in GatingLayout object
> p + theme(strip.text = element_text(size = 14))
There were 22 warnings (use warnings() to see them)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>