library(flowCore)
data(GvHD)
fs <- GvHD[subset(pData(GvHD), Patient %in%5:7 & Visit %in% c(5:6))[["name"]]]
#1d- density plot
autoplot(fs, x = "SSC-H")
#2d plot: default geom_hex plot
autoplot(fs, x = 'FSC-H', y ='SSC-H')
#autplot for GatingSet
dataDir <- system.file("extdata",package="flowWorkspaceData")
gs <- load_gs(list.files(dataDir, pattern = "gs_manual",full = TRUE))
autoplot(gs, "CD3+")
#autplot for GatingHierarchy
gh <- gs[[1]]
autoplot(gh) # by default the strip.text shows the parent population
#To display the gate name
#autoplot(gh , strip.text = "gate")
Run the code above in your browser using DataLab