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

Description Usage Arguments Value Examples

View source: R/fortify.R

Description

It interpolates the ellipsoidGate to polygongate before fortifying it.

Usage

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

Arguments

model

ellipsoidGate

data

data range used for polygon interpolation.

...

not used.

Value

data.table

Examples

1
2
3
4
5
6
## Defining the gate
cov <- matrix(c(6879, 3612, 3612, 5215), ncol=2,
              dimnames=list(c("FSC-H", "SSC-H"), c("FSC-H", "SSC-H")))
mean <- c("FSC-H"=430, "SSC-H"=175)
eg <- ellipsoidGate(filterId= "myEllipsoidGate", .gate=cov, mean=mean)
fortify(eg)

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