plot_stat: Plot the basic statistics after cell clustering and labeling

Description Usage Arguments Value

View source: R/visualization.R

Description

Plot the basic statistics after cell clustering and labeling

Usage

1
2
3
4
5
6
7
8
9
plot_stat(
  dataset,
  plot_type,
  group_by = "sample",
  pal_setup = "Set2",
  plot_ratio = 1,
  text_size = 10,
  tilt_text = FALSE
)

Arguments

dataset

A Seurat object.

plot_type

A string - one of "group_count", "prop_fill", and "prop_multi".

group_by

A string - the grouping variable in the metadata.

pal_setup

A dataframe with 2 columns - the RColorBrewer palette setup to be used;

or a character vector of RColorBrewer palettes. Multiple palettes can be specified, in case of many levels to be colored;

or a character vector of colors.

plot_ratio

A numeric value - the aspect ratio of the plot.

text_size

A numeric value - the text size of the plot.

tilt_text

A logical value - whether the x axis label text is tilted.

Value

A plot.


xmc811/Scillus documentation built on April 26, 2021, 1:41 a.m.