View source: R/plot_split_violinplot.R
plot_split_violin_with_boxplot | R Documentation |
Plot split violin plot (convenient to compare distribution before and after)
plot_split_violin_with_boxplot(df, y_col = "y", col_for_color = "m",
col_for_box = "x", colors_for_plot = c("#8f1811", "#F8C333"),
hlineintercept = NULL, plot_title = NULL, theme = "classic")
df |
data.frame with |
y_col |
value to explore the distribution of |
col_for_color |
column to use to map to two colors |
col_for_box |
column to use to do group comparison |
colors_for_plot |
colors to map to col_for_color |
hlineintercept |
NULL: no intercept line; non-null: intercept value |
plot_title |
title of the plot (e.g., processing step + representation level (fragments, transitions, proteins) + purpose (meanplot/corrplot etc)) |
theme |
ggplot theme, by default |
ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.