PlotScoresXY: Plotting the scores from the PCALMEffects function

Description Usage Arguments Details Value Examples

View source: R/PlotScoresXY.R

Description

Draw one or more graphs of the scores from a PCA. More specifically the result of the PCALMEffects function.

Usage

1
2
PlotScoresXY(ResPCALMEffects, design, EffectVector, PCaxes = c(1, 2),
  varname.color, varname.pch, ...)

Arguments

ResPCALMEffects

A list of p elements depending of the model terms from PCALMEffects

design

A n x d "free encoded" experimental design matrix with n observations and d the categorical variables.

EffectVector

A character vector of length l with the name of the model terms to plot

PCaxes

A vector with the two PC to plot for every effects

varname.color

A character variable with the name of the model term to use as color

varname.pch

A character variable with the name of the model term to use as pch

...

Other arguments from DrawScores

Details

Some messages from ggplot2 could be suppressed while we overwrite the graphs.

Value

A list of l ggplot2 graphs

Examples

1
2
3
4
5
6
 data('UCH')
 ResLMModelMatrix = LMModelMatrix(formula=as.formula(UCH$formula),design=UCH$design)
 ResLMEffectMatrices = LMEffectMatrices(ResLMModelMatrix,outcomes=UCH$outcomes)
 ResPCALMEffects = PCALMEffects(ResLMEffectMatrices,method="ASCA-E")
 PlotScoresXY(ResPCALMEffects = ResPCALMEffects, design = UCH$design,
  EffectVector = c("Time","Hippurate"),varname.color = "Citrate", varname.pch = "Hippurate")

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