plot_measure: Box plot/Violin plot of gene expressions or meta measures

Description Usage Arguments Value

View source: R/visualization.R

Description

Box plot/Violin plot of gene expressions or meta measures

Usage

1
2
3
4
5
6
7
8
plot_measure(
  dataset,
  measures,
  group_by,
  split_by = NA,
  pal_setup = "Set2",
  plot_type = "combined"
)

Arguments

dataset

A Seurat object.

measures

A character vector - names of genes or meta measures to plot.

group_by

A string - the grouping variable in the metadata.

split_by

A string - the splitting 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_type

A string - type of the plot. Should be values in c("box", "violin", "combined").

Value

A plot.


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