lmwEffectPlot: Effect plot

View source: R/lmwEffectPlot.R

lmwEffectPlotR Documentation

Effect plot

Description

Plots the ASCA scores by effect levels for a given model effect (for one by principal component at a time). This graph is particularly appealing to interpret interactions or combined effects.

Usage

lmwEffectPlot(
  resASCA,
  effectName,
  axes = 1,
  x,
  z = NULL,
  w = NULL,
  hline = 0,
  ...
)

Arguments

resASCA

A list corresponding to the ASCA output value of lmwPcaEffects.

effectName

Name of the effect matrix used for the scores.

axes

A numerical vector with the Principal Components axes to be drawn.

x

A character string giving the design factor whose levels will form the x axis.

z

A character string giving the design factor whose levels will form the traces.

w

A character string giving the design factor whose levels will be used for the facet.

hline

If not NULL, draws (a) horizontal line(s).

...

Additional arguments to be passed to plotMeans.

Details

lmwEffectPlot is a wrapper of plotMeans.

Value

An effect plot (ggplot).

Examples


  resLmwModelMatrix = lmwModelMatrix(UCH)
  resLmwEffectMatrices = lmwEffectMatrices(resLmwModelMatrix)
  resASCA = lmwPcaEffects(resLmwEffectMatrices = resLmwEffectMatrices,
method="ASCA", combineEffects = list(c("Hippurate", "Time",  "Hippurate:Time")))
  lmwEffectPlot(resASCA, effectName = "Hippurate", x = "Hippurate")


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