plot_mdPerClust: scClustViz plot: Plot to view cellular metadata by cluster

View source: R/shinyModules.R

plot_mdPerClustR Documentation

scClustViz plot: Plot to view cellular metadata by cluster

Description

This function makes boxplots / stacked barplots of cellular metadata separated by cluster.

Usage

plot_mdPerClust(MD, sel, cl, opt = "absolute", cols = NULL)

Arguments

MD

A dataframe of cellular metadata. See getMD.

sel

A character vector of one refering to the variable name from MD to plot.

cl

A factor of cluster assignments. See Cluster.

opt

Default="absolute". A character vector of plotting options. One of "absolute", "relative", or "y". "y" sets log-scales the data for postive numerical metadata. For categorical metadata, "absolute" plots a stacked barplot of raw counts, whereas "relative" plots the proportion of each cluster represented by each category.

cols

Default = NULL. A vector of colours used to label the clusters.

Examples

## Not run: 
plot_mdPerClust(MD=getMD(input_data_obj),
                sel="cyclonePhases",
                cl=Clusters(sCVdata),
                opt="relative")

## End(Not run)


BaderLab/scClustViz documentation built on Sept. 10, 2023, 11:51 p.m.