prepare_violin_data_colors: Prepare data for violin plots

View source: R/violin_plot_functions.R

prepare_violin_data_colorsR Documentation

Prepare data for violin plots

Description

prepare_violin_data_colors returns a list of expression data for the requested genes as well as an ordered vector of colors that will be used to fill the violin plots. This data can then be plotted by the construct_violin_plot function.

Usage

prepare_violin_data_colors(my_object, genes_to_investigate,
  dendrogram_input, colors)

Arguments

my_object

S4 object from which expression data should be extracted.

genes_to_investigate

a vector containing character strings of the genes that the user would like to visualize with violin plots.

dendrogram_input

an input dendrogram that relates the expression profiles in each cluster. See export_shiny_object for an example of generating such a dendrogram.

colors

a vector of length n_clusters to color the violin plot. The order of colors corresponds to the order of final_cluster_labels.

Examples

## Not run: 
prepare_violin_data_colors(my_object = seurat_obj, genes_to_investigate = c("RHO", "PDE6A"), dendrogram_input = my_dendrogram, colors = c("red", "green", "orange"))

## End(Not run)


drewvoigt10/cellcuratoR documentation built on May 22, 2023, 4:38 p.m.