View source: R/violin_plot_functions.R
prepare_violin_data_colors | R Documentation |
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.
prepare_violin_data_colors(my_object, genes_to_investigate,
dendrogram_input, colors)
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 |
colors |
a vector of length n_clusters to color the violin plot. The order of colors corresponds to the order of final_cluster_labels. |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.