pca_variance_plot: Saves to file a cumulative variance plot for principle...

pca_variance_plotR Documentation

Saves to file a cumulative variance plot for principle components of a PCA analysis

Description

Saves to file a cumulative variance plot for principle components of a PCA analysis with optional coloring by cumulative percent variance explained

Usage

pca_variance_plot(pca_results, output_path = NA, my_width = 8, my_height = 8)

Arguments

pca_results

A prcomp object

output_path

One-length character vector with fully qualified path to output file

my_width

One-length numeric vector for the width of the output plot

my_height

One-length numeric vector for the height of the output plot

Value

Returns the ggplot object


Benjamin-Vincent-Lab/binfotron documentation built on Oct. 1, 2024, 8:33 p.m.