Prop_comp_multi: Plot heatmap of real and estimated cell type proportions

View source: R/plot.R

Prop_comp_multiR Documentation

Plot heatmap of real and estimated cell type proportions

Description

Generate heatmaps of real and estimated cell type proportions side by side. Pearson correlation can be calculated and printed.

Usage

Prop_comp_multi(
  prop.real,
  prop.est,
  method.name = NULL,
  title = NULL,
  eval = TRUE,
  ...
)

Arguments

prop.real

a matrix of real cell type proportions

prop.est

a matrix or a list of matrices of estimated cell type proportions

method.name

vector of the names of estimation methods. Default is NULL and the names will be generated automatically as 'Est1', 'Est2', ...

title

a string of the title of the plot

eval

logical, default as TRUE. If TRUE, pearson correlation evaluation will be printed on the figure.

Value

a 'ggplot' object with [ggplot2::geom_tile]

See Also

Abs_diff_multi, Eval_multi, Scatter_multi

Examples

# generate random data


xuranw/MuSiC documentation built on March 7, 2024, 11:45 a.m.