tmix2DGate | R Documentation |
It basically calls flowClust to fit K clusters and construct K ellipsoidGate
from them.
tmix2DGate(fr, channels, K, quantile = 0.85, trans = 0, plot = FALSE, ...)
fr |
|
channels |
|
K |
|
quantile |
|
trans |
|
plot |
logical flag, whether to plot the flowClust results for the diagnostic purpose. |
... |
other arguments passed to |
a filters
object that contains K filters
constructed from K clusters generated by flowClust
## Not run:
library(ggcyto)
dataDir <- system.file("extdata",package="flowWorkspaceData")
gs <- load_gs(list.files(dataDir, pattern = "gs_manual",full = TRUE))
fr <- getData(gs[[1]], "CD3+")
gates <- tmix2DGate(fr = fr, channels = c("<B710-A>", "<R780-A>"), K = 2, quantile = 0.7)
autoplot(fr, "CD8","CD4") + geom_gate(gates)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.