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

Description Usage Arguments Value

View source: R/plot_split_violinplot.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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


proBatch documentation built on Nov. 8, 2020, 4:55 p.m.