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

View source: R/fortify.R

fortify.polygonGateR Documentation

Convert a polygonGate to a data.table useful for ggplot

Description

It converts the boundaries slot into a data.table

Usage

## 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

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) 

RGLab/ggcyto documentation built on March 3, 2024, 6:23 p.m.