You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# add two gatesp<-p+ geom_gate(c("CD4","CD8")) # short for geom_gate("CD8") + geom_gate("CD4")p
# add stats (for all gate layers by default) and only display marker on axisp+ geom_stats() + labs_cyto("marker")
# add stats just for one specific gatep+ geom_stats("CD4")
# change stats type, background color and positionp+ geom_stats("CD4", type="count", size=6, color="white", fill="black", adjust=0.3)
# 'subset' is abstract without specifiying itp<- ggcyto(gs, aes(x=CD4, y=CD8)) + geom_hex() +myThemep
## Error in fortify_fs.GatingSet(x$data): 'subset' must be instantiated by the actual node name!
## Make sure either 'subset' is specified or the 'geom_gate' layer is added.
# it can be instantiated by gate layerp+ geom_gate(c("CD4", "CD8"))
# plot all children of the specified parent and projectionsp<- ggcyto(gs, aes(x=38, y=DR), subset="CD4") + geom_hex(bins=64) + geom_gate() + geom_stats()
# add gates to the arbitary(non-parent) node
ggcyto(gs, subset="root", aes(x=CD4, y=CD8)) + geom_hex(bins=64) + geom_gate("CD4") +myTheme
# inverse transform the axis without affecting the datap+ axis_x_inverse_trans() + axis_y_inverse_trans()
#add filter (consistent with `margin` behavior in flowViz)# ggcyto(gs, aes(x = CD4, y = CD8), subset = "3+", filter = marginalFilter) + geom_hex(bins = 32, na.rm = T)
# knowing that for 'ggcyto' is the semi-ggplot object since the data slot is NOT fortified to data.frame# until it is printed/plotted.# (other than this it is completely ggplot compatible in terms of adding layers and themes)
class(p$data)