save_subject_line_plots: Save line plots with mean

Description Usage Arguments Examples

View source: R/effect_plots.R

Description

Plots the change in the feature abundances as a function of e.g. time. A line is drawn for each subject and a mean line is added. A separate plot is drawn for each feature.

Usage

1
2
3
save_subject_line_plots(object, all_features = FALSE, file, width = 8,
  height = 6, x = time_col(object), id = subject_col(object),
  color = NA, color_scale = NULL, facet = 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

id

character, name of the column containing subject IDs

color

character, the column name to color the lines by (optional)

color_scale

the color scale as returned by a ggplot function

facet

character, the column name to facet by (optional, usually same as color)

Examples

1
## Not run: save_subject_line_plots(drop_qcs(example_set), file = "subject_lines.pdf")

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