View source: R/violin_plot_functions.R
construct_violin_plot | R Documentation |
construct_violin_plot
Returns a ggplot object of expression profiles
for all clusters according to the input genes of interest. Colors and
expression profiles of data used for this visualization are prepared in
prepare_violin_data_colors
.
construct_violin_plot(my_object, genes_to_investigate, dendrogram_input,
colors, use_noise = TRUE, scale = "free_x")
my_object |
S4 object from which expression data should be extracted.
Used in generating data in |
genes_to_investigate |
a vector containing character strings of the
genes that the user would like to visualize with violin plots. Used in
generating data in |
dendrogram_input |
an input dendrogram that relates the expression
profiles in each cluster. See |
colors |
an vector of length n_clusters to color the violin plot. The
order of colors corresponds to the order of final_cluster_labels. Used in
generating data in |
use_noise |
adds random noise to expression values if TRUE (default). This results in violins being drawn for only clusters that contain at least 25 uses unmodified expression profiles. This results in violins being drawn for all clusters, regardless of the proportion of cells that express the gene |
scale |
the scale for facet_grid |
## Not run:
construct_violin_plot(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.