View source: R/5_plotFunctions.R
PlotStars | R Documentation |
Plot star charts
PlotStars(
fsom,
markers = fsom$map$colsUsed,
colorPalette = FlowSOM_colors,
list_insteadof_ggarrange = FALSE,
...
)
fsom |
FlowSOM object, as generated by |
markers |
Markers to plot (will be parsed by GetChannels) |
colorPalette |
Color palette to use |
list_insteadof_ggarrange |
If FALSE (default), the plot and the legend are combined by ggarrange. If TRUE, the separate elements are returned in a list, to allow further customization. |
... |
Additional arguments to pass to |
Plot FlowSOM grid or tree, where each node is represented by a star chart indicating median marker values
Nothing is returned. A plot is drawn in which each node is represented by a star chart indicating the median fluorescence intensities. Resets the layout back to 1 plot at the end.
PlotMarker
, PlotVariable
,
PlotFlowSOM
, PlotLabels
,
PlotNumbers
, PlotPies
,
QueryStarPlot
, PlotSD
# Read from file, build self-organizing map and minimal spanning tree
fileName <- system.file("extdata", "68983.fcs", package = "FlowSOM")
flowSOM.res <- FlowSOM(fileName, compensate = TRUE, transform = TRUE,
scale = TRUE, colsToUse = c(9, 12, 14:18))
# Plot stars indicating the MFI of the cells present in the nodes
PlotStars(flowSOM.res, backgroundValues = flowSOM.res$metaclustering)
newLayout <- igraph::layout_with_fr(flowSOM.res[["MST"]][["graph"]])
PlotStars(flowSOM.res, backgroundValues = flowSOM.res$metaclustering,
view = newLayout)
PlotStars(flowSOM.res, backgroundValues = flowSOM.res$metaclustering,
view = "grid")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.