By specifying the dimensions through aes
and selecting the cell population through subset
, ggcyto
can easily visualize the gated data stored in GatingSet
.
p <- ggcyto(gs, aes(x = CD4, y = CD8), subset = "CD3+")
# 2d plot
p <- p + geom_hex(bins = 64)
p