PlotScree: Plot a Screeplot from a ResPCALMEffects list

Description Usage Arguments Value Examples

View source: R/PlotScree.R

Description

Plot a Screeplot of the Principal Component variances

Usage

1
PlotScree(ResPCALMEffects, EffectName, PCnumber = 5)

Arguments

ResPCALMEffects

a ResPCALMEffects list from the function PCALMEffects

EffectName

a character with the name of the effect to plot

PCnumber

Integer with the number of components to plot

Value

A ggplot2 object with the Screeplot

Examples

1
2
3
4
5
 data('UCH')
 ResLMModelMatrix = LMModelMatrix(formula=as.formula(UCH$formula),design=UCH$design)
 ResLMEffectMatrices = LMEffectMatrices(ResLMModelMatrix,outcomes=UCH$outcomes)
 ResPCALMEffects = PCALMEffects(ResLMEffectMatrices,method="ASCA-E")
 PlotScree(ResPCALMEffects,"Hippurate:Citrate",PCnumber=8)

FranceschiniS/LMWiRe documentation built on Oct. 30, 2019, 6:20 p.m.