plot_ctd: Plot _CellTypeData_ metrics

View source: R/plot_ctd.R

plot_ctdR Documentation

Plot CellTypeData metrics

Description

Plot CellTypeData metrics such as mean_exp, specificity and/or specificity_quantiles.

Usage

plot_ctd(ctd, genes, level = 1, metric = "specificity", show_plot = TRUE)

Arguments

ctd

CellTypeDataset.

genes

Which genes in ctd to plot.

level

Annotation level in ctd to plot.

metric

Which metric in the ctd to plot:

  • "mean_exp"

  • "specificity"

  • "specificity_quantiles"

show_plot

Whether to print the plot or simply return it.

Value

ggplot object.

Examples

ctd <- ewceData::ctd()
plt <- EWCE::plot_ctd(ctd, genes = c("Apoe", "Gfap", "Gapdh"))

NathanSkene/EWCE documentation built on Nov. 3, 2024, 8:16 a.m.