clusterBarPlot: clusterBarPlot

View source: R/scAnnotation.R

clusterBarPlotR Documentation

clusterBarPlot

Description

clusterBarPlot

Usage

clusterBarPlot(
  cell.annotation,
  sel.col = "Cell.Type",
  cell.colors = NULL,
  legend.title = NULL,
  legend.position = "bottom",
  legend.ncol = NULL
)

Arguments

cell.annotation

A data.frame of cells' annotation containing the cells' Cluster and other information to be colored.

sel.col

The column name of cell.annotation, which indicating the type of cells.

cell.colors

An array of colors used to show the cells' type. If NULL, the default colors will be used.

legend.title

The title of legends. If NULL, the value of "sel.col" will be used.

legend.position

The position of legends ("none", "left", "right", "bottom", "top", or two-element numeric vector).

legend.ncol

The number of column of legends.

Value

A bar plot.


wguo-research/scCancer documentation built on May 26, 2024, 9:12 p.m.