Learn R Programming

ggcyto (version 1.0.5)

fortify.flowFrame: Convert a flowFrame/flowSet/GatingSet to a ggplot-compatible data.table

Description

It extracts events matrices and appends the pData to it so that ggplot can use the pData for facetting.

Usage

"fortify"(model, data, ...)
"fortify"(model, data, ...)
"fortify"(model, ...)

Arguments

model
flowFrame, flowSet or GatingSet
data
not used.
...
not used.

Value

data.tabledata.tabledata.table

Examples

Run this code
dataDir <- system.file("extdata",package="flowWorkspaceData")
gs <- load_gs(list.files(dataDir, pattern = "gs_manual",full = TRUE))

attr(gs, "subset") <- "CD4" #must attach subset information to GatingSet object before foritfying it
fortify(gs)

fs <- getData(gs, "CD8")
fortify(fs)#fs is a flowSet/ncdfFlowSet

fr <- fs[[1]]
fortify(fr)#fr is a flowFrame

Run the code above in your browser using DataLab