Given a data.frame with two/three columns in long format (name, value, [contaminant]; in that order), each group (given from 1st column) is plotted as a bar. Contaminants (if given) are separated and plotted as yellow bars.
boxplotCompare(
data,
log2 = TRUE,
ylab = "intensity",
mainlab = ylab,
sublab = "",
boxes_per_page = 30,
abline = NA,
coord_flip = TRUE,
names = NA
)
Data frame in long format with numerical expression data
Apply log2 to the data (yes/no)
Label on Y-axis
Main title
Sub title
Maximum number of boxplots per plot. Yields multiple plots if more groups are given.
Draw a horizontal green line at the specified y-position (e.g. to indicate target median values)
Exchange Y and X-axis for better readability
An optional data.frame(long=.., short=..), giving a renaming scheme (long->short) for the 'name' column
List of ggplot objects
Boxes are shaded: many NA or Inf lead to more transparency. Allows to easily spot sparse groups