fortify.rectangleGate: Convert a rectangleGate to a data.table useful for ggplot

Description Usage Arguments Value Examples

View source: R/fortify.R

Description

For 2d rectangelGate, it is converted to a polygonGate first and then dispatch to the fortify method for polygonGate. for 1d, uses geom_vline/hline format.

Usage

1
2
## S3 method for class 'rectangleGate'
fortify(model, data = NULL, ...)

Arguments

model

rectangleGate

data

data range used for polygon interpolation.

...

not used.

Value

data.table

Examples

1
2
3
4
5
6
#2d rectangleGate
rect.g <- rectangleGate(list("FSC-H" =  c(300,500), "SSC-H" = c(50,200)))
fortify(rect.g)
#1d gate
rg <- rectangleGate(list("FSC-H" =  c(300,500)))
fortify(rg)

ggcyto documentation built on Nov. 8, 2020, 5:30 p.m.