Description Usage Arguments Details Value Examples
Draw one or more graphs of the scores from a PCA. More specifically the result of the PCALMEffects
function.
1 2 | PlotScoresXY(ResPCALMEffects, design, EffectVector, PCaxes = c(1, 2),
varname.color, varname.pch, ...)
|
ResPCALMEffects |
A list of p elements depending of the model terms from |
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 |
Some messages from ggplot2 could be suppressed while we overwrite the graphs.
A list of l ggplot2 graphs
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.