plot_CoGAPS_patternSet_dim: Plot a set of CoGAPS patterns on a dimensionality reduction...

Description Usage Arguments Value Examples

View source: R/plot_CoGAPS_patternSet_dim.R

Description

plot_CoGAPS_patternSet_dim() plots Pmeans of a CoGAPS pattern set on a dimensonality reduction plots.

Usage

1
2
3
plot_CoGAPS_patternSet_dim(CoGAPS_res_set, Pattern_set, annotation,
  dim_reduction, color_scale = c("slategray1", "red"),
  facet_wrap_by = NULL)

Arguments

CoGAPS_res_set

a CoGAPS result set. If set to NULL, a Pmeans matrix may be supplied directly as input for the Pattern_set parameter.

Pattern_set

a string specifying the name of a pattern set (e.g. "nP20") in a CoGAPS_res_set. Alternatively, if CoGAPS_res_set is set to NULL, a Pmeans matrix may be supplied directly.

annotation

an annotation dataframe. Must contain columns with column names corresponding to values in the group_vector.

dim_reduction

a dataframe specifying the coordinates of a dimensionality reduction method (e.g. t-SNE, UMAP etc.). Each column should specify one dimension. Rownames should correspond to the rownames of the annotation object. Colnames will be used as axis labels.

facet_wrap_by

a string specifying variable for facet_wrap; defaults to NULL.

Value

a list of ggplot objects

Examples

1
2
plot_CoGAPS_patternSet_dim(CoGAPS_res_set= my_CoGAPS_res, Pattern_set="nP30",  annotation=pData(cds), 
dim_reduction = UMAP_proj)

jacobheng/cellwrangler documentation built on Aug. 12, 2019, 6:49 a.m.