fortify.polygonGate {ggcyto} | R 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.
`...` | 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)

[Package ggcyto version 1.15.2 Index]