plot_split_violin_with_boxplot: Plot split violin plot (convenient to compare distribution...

View source: R/plot_split_violinplot.R

plot_split_violin_with_boxplotR Documentation

Plot split violin plot (convenient to compare distribution before and after)

Description

Plot split violin plot (convenient to compare distribution before and after)

Usage

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")

Arguments

df

data.frame with y_col, col_for_color, col_for_box

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 classic. Can be easily overriden

Value

ggplot object


symbioticMe/proBatch documentation built on April 9, 2023, 11:59 a.m.