scPopulationPlot: scPopulationPlot

View source: R/scPopulationPlot.R

scPopulationPlotR Documentation

scPopulationPlot

Description

Population plot by clusters or samples

Usage

scPopulationPlot(
  object = NULL,
  by = c("sample", "cluster"),
  order = NULL,
  cols = NULL
)

Arguments

object

Seurat object

by

String used to separate cluster/sample, only 'cluster' or 'sample' is accepted

order

A vector to set the order of samples

cols

Vector of colors, each color corresponds to an identity class. Use ggplot2's default colors by default. We include a pallete called 'sc' which consists of 36 colors

Value

A dataframe that used to draw this plot

Examples

data("H3N2_small")
scPopulationPlot(object = H3N2_small,
  by = "sample",
  cols = NULL,
  order = c("Bystander", "Infected")
)


ncrna/Yeskit documentation built on Nov. 4, 2024, 10:32 p.m.