Description Usage Arguments Details Value Examples
This is a virtual layer and will be instanatiated as geom_label layer within ggycto.+ operator.
1 2 3 4 5 6 7 8 9 10 11 |
gate |
a 'filterList' or character (represent as a population node in GatingSet) if not supplied, ggcyto then tries to parse the gate from the first geom_gate layer. |
... |
other arguments passed to geom_label layer |
value |
the pre-calculated stats value. when supplied, the stats computing is skipped. |
type |
a vector of strings to specify the stats types. can be any or multiple values of "percent", "count", "gate_name", or "MFI" (MFI is currently not supported yet). |
negated |
whether the gate needs to be negated |
adjust |
adjust the position of the centroid. from 0 to 1. |
label.padding, label.size |
arguments passed to geom_label layer |
digits |
control the stats format |
So it is dedicated for ggcyto context and thus cannot be added to ggplot object directly.
a geom_popStats layer
1 2 3 4 5 6 7 8 9 10 11 | dataDir <- system.file("extdata",package="flowWorkspaceData")
gs <- load_gs(list.files(dataDir, pattern = "gs_manual",full = TRUE))
p <- ggcyto(gs, aes(x = CD4, y = CD8), subset = "CD3+") + geom_hex(bins = 64)
p
# add gate and stats layer
p + geom_gate("CD4") + geom_stats()
# display gate name
p + geom_gate(c("CD4", "CD8")) + geom_stats(type = "gate_name")
# display gate name and percent
p + geom_gate(c("CD4", "CD8")) + geom_stats(type = c("gate_name", "percent"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.