dotplotByMetadata-methods: Dot plot of genes in populations.

dotplotByMetadataR Documentation

Dot plot of genes in populations.

Description

Present a dot plot of selected genes in the specified populations in the column argument by the ones in the column2 argument and save to file. The dot size represents the percentage of cells expressing the indicated genes in each cluster and the dot color intensity represents the average expression level of the indicated genes.

Usage

dotplotByMetadata(
  object,
  assay.type = "RNA",
  genes.use,
  column = "population",
  column2,
  thr,
  order,
  order2,
  cols
)

## S4 method for signature 'CellRouter'
dotplotByMetadata(
  object,
  assay.type,
  genes.use,
  column,
  column2,
  thr,
  order,
  cols
)

Arguments

object

CellRouter object.

assay.type

character; the type of data to use.

genes.use

character vector; genes to show.

column

character; column name in cellrouter@sampTab indicating the population.

column2

character; column name in cellrouter@sampTab indicating the groups that the population form column belongs.

thr

numeric; threshold.

order

character vector; ordered populations from column to be considered.

order2

character vector; ordered populations from column2 to be considered.

cols

numeric; number of columns in the output figure.

Value

ggplot2; plot.


edroaldo/fusca documentation built on March 1, 2023, 1:43 p.m.