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

Description Usage Arguments Value Examples

View source: R/fortify.R

Description

It converts the boundaries slot into a data.table

Usage

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

Arguments

model

polygonGate

data

data range used to reset off-bound gate coordinates to prevent interpolating on the extremely large space unnecessarily.

nPoints

not used

...

not used.

Value

data.table

Examples

1
2
3
4
sqrcut <- matrix(c(300,300,600,600,50,300,300,50),ncol=2,nrow=4)
colnames(sqrcut) <- c("FSC-H","SSC-H")
pg <- polygonGate(filterId="nonDebris", .gate= sqrcut)
fortify(pg) 

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