plot_explained_variance: Plot the explained variance by the PC

View source: R/plot_mds.R

plot_explained_varianceR Documentation

Plot the explained variance by the PC

Description

This function plot the explained variance by the Principal Component analysis.

Usage

plot_explained_variance(
  screenR_Object,
  cumulative = FALSE,
  color = "steelblue"
)

Arguments

screenR_Object

The ScreenR object obtained using the create_screenr_object

cumulative

A boolean value which indicates whether or not to plot the cumulative variance. The default value is FALSE.

color

The color to fill the barplot the default value is steelblue

Value

The explained variance plot

Examples

object <- get0("object", envir = asNamespace("ScreenR"))

plot_explained_variance(object)

# For the cumulative plot
plot_explained_variance(object, cumulative = TRUE)

EmanuelSoda/ScreenR documentation built on Sept. 29, 2023, 12:33 a.m.