Description Usage Arguments Value Examples
View source: R/PlotScoresMatrix.R
Plot a matrix of scores graphs
1 2 3 4 5 |
ResPCALMEffects |
A list of p+3 elements depending of the model terms from |
ModelAbbrev |
A logical whether to abbreviate the interaction terms |
design |
The nxk "free encoded" experimental design data frame |
EffectNames |
A character vector with the name of the effects to plot |
alleffect |
A logical whether to plot every effect |
PCdim |
A numeric vector with the same length than EffectNames and indicating the number of component to plot |
varname.colorup |
A character with the name of variable used to color the upper triangle |
varname.colordown |
A character with the name of variable used to color the upper triangle |
varname.pchup |
A character with the name of variable used to mark points from the upper triangle |
varname.pchdown |
A character with the name of variable used to mark points from the lower triangle |
vec.colorup |
A color vector with a length equivalent to the number of levels from varname.colorup |
vec.colordown |
A color vector with a length equivalent to the number of levels from varname.colordown |
vec.pchup |
A pch vector with a length equivalent to the number of levels from varname.pchup |
vec.pchdown |
A pch vector with a length equivalent to the number of levels from varname.pchdown |
A matrix of graphs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | data('UCH')
ResLMModelMatrix = LMModelMatrix(formula=as.formula(UCH$formula),design=UCH$design)
ResLMEffectMatrices = LMEffectMatrices(ResLMModelMatrix,outcomes=UCH$outcomes)
ResPCALMEffects = PCALMEffects(ResLMEffectMatrices,method="ASCA-E")
PlotScoresMatrix(ResPCALMEffects,
ModelAbbrev=FALSE,
design=UCH$design,
EffectNames = c("Citrate","Hippurate","Hippurate:Citrate"),
alleffect = FALSE,
PCdim=c(2,2,2),
varname.colorup = "Citrate",
vec.colorup = c("red","blue","green"),
varname.pchup="Hippurate",
vec.pchup=c(1,2,3),
varname.pchdown = "Day",
vec.pchdown = c(4,5),
varname.colordown="Time",
vec.colordown = c("brown","grey"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.