save_group_boxplots: Save box plots of each feature by group

Description Usage Arguments Examples

View source: R/effect_plots.R

Description

Draws a boxplot of feature abundances in each group. A separate plot is drawn for each feature.

Usage

1
2
3
save_group_boxplots(object, all_features = FALSE, file, width = 8,
  height = 6, x = group_col(object), color = group_col(object),
  color_scale = NULL)

Arguments

object

a MetaboSet object

all_features

logical, should all features be used? If FALSE (the default), flagged features are removed before visualization.

file

path to the PDF file where the plots should be saved

width, height

width and height of the plots in inches

x

character, name of the column to be used as x-axis

color

character, name of the column to be used for coloring

color_scale

the color scale as returned by a ggplot function

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Default boxplots by group
save_group_boxplots(drop_qcs(merged_sample), file = "boxplots.pdf")
# x and color can be a different variable
save_group_boxplots(drop_qcs(merged_sample), file = "boxplots_time.pdf",
                    x = "Time", color = "Group")

## End(Not run)

antonvsdata/amp documentation built on Jan. 8, 2020, 3:15 a.m.