plot_readcount: Plot Read Count

View source: R/plotting.R

plot_readcountR Documentation

Plot Read Count

Description

Draw a box plot for read count data of a metadata variable

Usage

plot_readcount(
  seu,
  metavar = "nCount_RNA",
  color.by = "batch",
  yscale = "linear",
  return_plotly = FALSE,
  ...
)

Arguments

seu

A seurat object

metavar

Metadata variable to plot. Default set to "nCount_RNA"

color.by

Variable to color bins by. Default set to "batch"

yscale

Scale of y axis. Default set to "linear"

return_plotly

whether to return an interactive ploly plot. Default set to FALSE

Examples

# interactive plotly
plot_readcount(human_gene_transcript_seu, return_plotly = TRUE)
# static plot
plot_readcount(human_gene_transcript_seu, return_plotly = FALSE)


whtns/seuratTools documentation built on Oct. 28, 2024, 7:18 a.m.