pcaSeriesPlot: PCA series plot

View source: R/pcaSeriesPlot.R

pcaSeriesPlotR Documentation

PCA series plot

Description

Plot the median loadings for each cluster along the principal components as a series, with an option to include a ribbon describing the range from the first ot the third quartile around this.

Usage

pcaSeriesPlot(
  x,
  labels,
  alpha = 0.8,
  lty = 3,
  n_comp = 10,
  include_area = F,
  ribbon_alpha = 0.2,
  ribbon_lty = 4
)

Arguments

x

A matrix of the loadings of each item upon each component (the "x" part of the prcomp() output).

labels

A vector of the labels associated with the rows of x.

n_comp

The number of components to plot.

include_area

Logical indicating inclusion of [quartile_1, quartile_3] about the median value of the clusters across components.

ribbon_alpha

The alpha used on the ribbon geom describing the range about the median of the clusters.

ribbon_lty

The linetype used on the ribbon geom describing the range about the median of the clusters.

Value

A “ggplot2” plot.


stcolema/mdiHelpR documentation built on July 28, 2024, 5:41 a.m.