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

View source: R/fortify.R

fortify.ellipsoidGateR Documentation

Convert a ellipsoidGate to a data.table useful for ggplot

Description

It interpolates the ellipsoidGate to polygongate before fortifying it.

Usage

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

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

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