View source: R/5_plotFunctions.R
PlotVariable | R Documentation |
Plot a variable for all nodes
PlotVariable(
fsom,
variable,
variableName = "",
colorPalette = FlowSOM_colors,
lim = NULL,
...
)
fsom |
FlowSOM object |
variable |
A vector containing a value for every cluster |
variableName |
Label to show on the legend |
colorPalette |
Color palette to use. Can be a function or a vector. |
lim |
Limits for the scale |
... |
Additional arguments to pass to |
Plot FlowSOM grid or tree, colored by node values given in variable
PlotStars
, QueryStarPlot
,
PlotFlowSOM
, PlotLabels
,
PlotNumbers
, PlotMarker
,
PlotPies
, PlotSD
# Build FlowSOM model
fileName <- system.file("extdata", "68983.fcs", package = "FlowSOM")
flowSOM.res <- FlowSOM(fileName,
compensate = TRUE, transform = TRUE, scale = FALSE,
colsToUse = c(9, 12, 14:18),
nClus = 10,
seed = 1)
# Plot some random values
rand <- runif(flowSOM.res$map$nNodes)
PlotVariable(flowSOM.res,
variable = rand,
variableName = "Random")
PlotVariable(flowSOM.res,
variable = flowSOM.res$metaclustering,
variableName = "Metaclustering") %>%
AddLabels(labels = flowSOM.res$metaclustering)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.