lmwScoreScatterPlotM: Score scatter plot matrix

View source: R/lmwScoreScatterPlotM.R

lmwScoreScatterPlotMR Documentation

Score scatter plot matrix

Description

Plots the scores of all model effects simultaneously in a scatterplot matrix. By default, the first principal component only is kept for each model effect and, as a wrapper of plotScatterM, the choice markers and colors for factor levels allow to enrich the visualization of the factor effects on the responses.

Usage

lmwScoreScatterPlotM(
  resLmwPcaEffects,
  effectNames = NULL,
  PCdim = NULL,
  modelAbbrev = FALSE,
  ...
)

Arguments

resLmwPcaEffects

A list corresponding to the output value of lmwPcaEffects.

effectNames

A character vector with the name of the effects to plot.

PCdim

A numeric vector with the same length than effectNames and indicating the number of component to plot.

modelAbbrev

A logical whether to abbreviate the interaction terms or not.

...

Additional arguments to be passed to plotScatterM.

Details

lmwScoreScatterPlotM is a wrapper of plotScatterM.

Value

A matrix of graphs

Examples


 data('UCH')
 resLmwModelMatrix = lmwModelMatrix(UCH)
 ResLmwEffectMatrices = lmwEffectMatrices(resLmwModelMatrix)
 resLmwPcaEffects = lmwPcaEffects(ResLmwEffectMatrices,method="ASCA-E")

 lmwScoreScatterPlotM(resLmwPcaEffects,
                 varname.colorup = "Citrate",
                 varname.pchup="Hippurate",
                 varname.pchdown = "Day",
                 varname.colordown="Time")

 # advanced setting
 lmwScoreScatterPlotM(resLmwPcaEffects,
                 modelAbbrev=FALSE,
                 effectNames = c("Citrate","Hippurate","Hippurate:Citrate"),
                 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"))


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