plotPieCluster: Visualization pie plot of cluster data of FSPY

Description Usage Arguments Value Examples

View source: R/plot2D.R

Description

Visualization pie plot of cluster data of FSPY

Usage

1
2
3
4
5
6
7
8
plotPieCluster(
  object,
  item.use = c("PC_1", "PC_2"),
  cex.size = 1,
  size.by.cell.number = TRUE,
  main = "2D pie plot of FSPY",
  plot.theme = theme_bw()
)

Arguments

object

An FSPY object

item.use

character. Items use to 2D plot, axes x and y must be numeric.

cex.size

numeric. Size of the dot

size.by.cell.number

logical. Whether to show size of cell number.

main

character. Title of the plot.

plot.theme

themes from ggplot2

Value

ggplot2 figure

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
if (FALSE) {
# Runs only have more than two stages
plotPieCluster(fspy, cex.size = 0.5)

plotPieCluster(fspy, item.use = c("PC_1", "PC_2"), cex.size = 0.5)
plotPieCluster(fspy, item.use = c("PC_2", "PC_3"), cex.size = 0.5)

plotPieCluster(fspy, item.use = c("tSNE_1", "tSNE_2"), cex.size = 20)

plotPieCluster(fspy, item.use = c("DC_1", "DC_2"), cex.size = 0.5)

plotPieCluster(fspy, item.use = c("UMAP_1", "UMAP_2"), cex.size = 1)
plotPieCluster(fspy, item.use = c("UMAP_1", "UMAP_2"), cex.size = 1) +
   scale_fill_manual(values = c("#00599F","#FF3222","#009900",
                                "#FF9933","#FF99FF","#7A06A0"))
}

flowSpy documentation built on Nov. 8, 2020, 6:53 p.m.