Description Usage Arguments Value Examples
It simply constructs an boundaryFilter that removes the marginal events. It can be passed directly to ggcyto constructor. See the examples for details.
1 | marginalFilter(fs, dims, ...)
|
fs |
flowSet (not used.) |
dims |
the channels involved |
... |
arguments passed to boundaryFilter |
an boundaryFilter
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | data(GvHD)
fs <- GvHD[1]
chnls <- c("FSC-H", "SSC-H")
#before removign marginal events
summary(fs[, chnls])
# create merginal filter
g <- marginalFilter(fs, chnls)
g
#after remove marginal events
fs.clean <- Subset(fs, g)
summary(fs.clean[, chnls])
#pass the function directly to ggcyto
dataDir <- system.file("extdata",package="flowWorkspaceData")
gs <- load_gs(list.files(dataDir, pattern = "gs_manual",full = TRUE))
# with marginal events
ggcyto(gs, aes(x = CD4, y = CD8), subset = "CD3+") + geom_hex(bins = 64)
# using marginalFilter to remove these events
ggcyto(gs, aes(x = CD4, y = CD8), subset = "CD3+", filter = marginalFilter) + geom_hex(bins = 64)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.