figure_pca: PCA compound figure.

Description Usage Arguments Details Note Author(s) See Also

View source: R/figure_pca.R

Description

figure_pca() reproduces the LCMS and NMR PCA scores compound figure in Benjamin Gordon's PhD thesis.

Usage

1
2
figure_pca(scale = FALSE, center = TRUE, view.plot = TRUE,
  save.plot = FALSE, plot.name = "pca_figure", seed = 1978)

Arguments

scale

Logical indicating if scaling should be applied in PCA

center

Logical indicatinf if the data should be centered

view.plot

Logical indicating if the plot should be printed to the plot viewer.

save.plot

Logical indicating if the plot should be saved to ./figs/.

plot.name

Name of plot.

seed

Integer the sets the state of the random number generator

Details

figure_pca() loads the saved gg objects in ./inst/extdata/; extracts the legend from the mzpca plot; adds plot labels (a and b) and saves the plot to ./figs/ as a .pdf file.

Note

Although this function is exported, figure_pca() was not intended to be used outside of this package.

Author(s)

Benjamin R. Gordon

See Also

gridExtra-package ggplot grid-package


brgordon17/coralclass documentation built on June 15, 2020, 9:21 p.m.