PlotLabels {FlowSOM} | R Documentation |
Plot labels for each cluster
PlotLabels( fsom, labels, maxNodeSize = 0, textSize = 3.88, textColor = "black", ... )
fsom |
FlowSOM object, as generated by |
labels |
A vector of labels for every node. |
maxNodeSize |
Determines the maximum nodesize. Default is 0. |
textSize |
Size for geom_text. Default (=3.88) is from geom_text. |
textColor |
Color for geom_text. Default = black. |
... |
Additional arguments to pass to |
Plot FlowSOM grid or tree, with in each node a label. Especially useful to show metacluster numbers
Nothing is returned. A plot is drawn in which each node is represented by a label.
PlotStars
, PlotVariable
,
PlotFlowSOM
, PlotMarker
,
PlotNumbers
, PlotPies
,
QueryStarPlot
, PlotSD
# Read from file, build self-organizing map and minimal spanning tree fileName <- system.file("extdata", "68983.fcs", package="FlowSOM") ff <- flowCore::read.FCS(fileName) ff <- flowCore::compensate(ff, flowCore::keyword(ff)[["SPILL"]]) ff <- flowCore::transform(ff, flowCore::transformList(colnames(flowCore::keyword(ff)[["SPILL"]]), flowCore::logicleTransform())) flowSOM.res <- FlowSOM(ff, scale = TRUE, colsToUse = c(9, 12, 14:18), nClus = 10, seed = 1) # Plot the node IDs PlotLabels( flowSOM.res, flowSOM.res$metaclustering)