lmwScreePlot: Scree Plot

View source: R/lmwScreePlot.R

lmwScreePlotR Documentation

Scree Plot

Description

Plots barplots of the percentage of variance associated with each principal component and for each matrix effect on the basis of lmwContributions outputs.

Usage

lmwScreePlot(
  resLmwContributions,
  effectNames = NULL,
  nPC = 5,
  theme = theme_bw()
)

Arguments

resLmwContributions

A resLmwContributions list from the function lmwContributions.

effectNames

Names of the effects to be plotted. if NULL, all the effects are plotted.

nPC

An integer with the number of components to plot.

theme

ggplot theme

Value

A scree plot (ggplot).

Examples


 data('UCH')
 resLmwModelMatrix = lmwModelMatrix(UCH)
 resLmwEffectMatrices = lmwEffectMatrices(resLmwModelMatrix)
 resASCAE = lmwPcaEffects(resLmwEffectMatrices, method="ASCA-E")
 resLmwContributions = lmwContributions(resASCAE)
 lmwScreePlot(resLmwContributions, effectNames ="Hippurate:Citrate", nPC=4)


bgovaerts/LMWiRe documentation built on Sept. 17, 2022, 12:32 a.m.