SingleR.DrawBoxPlot: Plot boxplots for each label for a given single cell.

Description Usage Arguments Value

View source: R/SingleR.Plotting.R

Description

Plot boxplots for each label for a given single cell.

Usage

1
2
3
SingleR.DrawBoxPlot(sc_data, cell_id, ref, labels.use = NULL,
  quantile.order = 0.8, main_types = F, top.n = 50, tit = NULL,
  colors = singler.colors)

Arguments

sc_data

the single-cell RNA-seq data set as a matrix with genes as rownames.

cell_id

a number of the single cell to use

ref

the reference dataset with genes as rownames. Gene names must be in the same format as the single cell data (if sc_data uses genes symbols, ref_data must have the same)

labels.use

a list of labels to use. If NULL uses all labels.

quantile.order

same a quantile.use - by which percentile to order the boxplots.

main_types

aggregate labels by main types or by all types

top.n

number of boxplots to present (starting from top)

tit

title for the boxplot

colors

colors to use. Default is singler.colors

Value

a list with a ggplot and the scores for the single cell


dviraran/SingleR documentation built on April 21, 2020, 3:23 p.m.