GatingHierarchy
or GatingSet
GatingHierarchy
,arrange
is set as TRUE, then all the gates associated with it are plotted as different panel on the same page.
If arrange
is FALSE, then it plots one gate at a time.
By default ,merge
is set as TRUE, plot multiple gates on the same plot when they share common parent population and axis.
When applied to a GatingSet
, if lattice is TRUE,it plots one gate (multiple samples) per page , otherwise, one sample (with multiple gates) per page.
plotGate(x, y, ...)
"plotGate"(x, y, ...)
"plotGate"(x, y, ...)
"plotGate"(x, y, ...)
GatingSet
or GatingHierarchy
objectcharacter
the node name or full(/partial) gating path
or numeric
representing the node index in the GatingHierarchy
.
or missing
which will plot all gates and one gate per page. It is useful for generating plots in a multi-page pdf.
Nodes can be accessed with getNodes
.logical
specifying whether to plot boolean gates.
character
The title of the main page of the plot. Default is the sample name. Only valid when x
is GatingHierarchy
logical
indicating whether to arrange different populations/nodes on the same page via arrangeGrob
call.
logical
indicating whether to draw multiple gates on the same plot if these gates share the same parent population and same x,y dimensions/parameters;
list
of character vectors used to customize x,y axis. By default, the x,y axis are determined by the respective gate parameters.
The elements of the list are named by the population name or path (see y
). Each element is a pair of named character specifying the channel name(or marker name) for x, y axis.
Short form of channel or marker names (e.g. "APC" or "CD3") can be used as long as they can be uniquely matched to the dimentions of flow data.
For example, projections = list("lymph" = c(x = "SSC-A", y = "FSC-A"), "CD3" = c(x = "CD3", y = "SSC-A"))
list
of graphical parameters passed to lattice
;
list
of grid parameters passed to grid.layout
;
logical
deprecated;
formula
a formula passed to xyplot
function of flowViz
, by default it is NULL, which means the formula is generated according to the x,y parameters associated with gate.
character
the conditioning variable to be passed to lattice plot.
y
argument) as the overlaid dots.
character
specifiying y channel for xyplot when plotting a 1d gate. Default is "SSC-A" and session-wise setting can be stored by 'flowWorkspace.par.set("plotGate", list(default.y = "FSC-A"))'
character
either "xyplot" or "densityplot". Default is "xyplot" and session-wise setting can be stored by 'flowWorkspace.par.set("plotGate", list(type = "xyplot"))'
ligcal
specifies whether to show pop name in strip box,only valid when x is GatingHierarchy
logical
whether to show the axis in raw(untransformed) scale. Default is TRUE and can be stored as session-wise setting by 'flowWorkspace.par.set("plotGate", list(raw.scale = TRUE))'
character
can be either "instrument" or "data" which determines the x, y axis scale
either by instrument measurement range or the actual data range.
or numeric
which specifies customized range.
They can be stored as session-wise setting by 'flowWorkspace.par.set("plotGate", list(xlim = "instrument"))'
path A character
or numeric
scalar passed to getNodes method (used to control how the gating/node path is displayed)
... The other additional arguments to be passed to xyplot.
trellis
object if arrange
is FALSE
,
## Not run:
# projections <- list("cd3" = c(x = "cd3", y = "AViD")
# , "cd4" = c(x = "cd8", y = "cd4")
# , "cd4/IL2" = c(x = "IL2", y = "IFNg")
# , "cd4/IFNg" = c(x = "IL2", y = "IFNg")
# )
# plotGate(gh, c("cd3", "cd4", "cd4/IL2", "cd4/IFNg"), path = "auto", projections = projections, gpar = c(nrow = 2))
#
# ## End(Not run)
## Not run:
# #G is a GatingHierarchy
# plotGate(G,getNodes(G)[5]);#plot the gate for the fifth node
# ## End(Not run)
Run the code above in your browser using DataLab