lmwScorePlot: Score plots

View source: R/lmwScorePlot.R

lmwScorePlotR Documentation

Score plots

Description

Draws the score plots of each effect matrix provided in lmwPcaEffects outputs. As a wrapper of the plotScatter function, it allows the visualization of effect score matrices for two components at a time with all options available in plotScatter.

Usage

lmwScorePlot(resLmwPcaEffects, effectNames = NULL, axes = c(1, 2), ...)

Arguments

resLmwPcaEffects

A list corresponding to the output value of lmwPcaEffects.

effectNames

Names of the effects to be plotted. If NULL, all the effects are plotted.

axes

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

...

Additional arguments to be passed to plotScatter.

Details

lmwScorePlot is a wrapper of plotScatter.

Value

A list of score plots (ggplot).

Examples


data('UCH')
resLmwModelMatrix = lmwModelMatrix(UCH)
resLmwEffectMatrices = lmwEffectMatrices(resLmwModelMatrix)
resASCA = lmwPcaEffects(resLmwEffectMatrices)

lmwScorePlot(resASCA, effectNames = "Hippurate",
color = "Hippurate", shape = "Hippurate")

lmwScorePlot(resASCA, effectNames = "Hippurate:Time",
color = "Hippurate", shape = "Time")


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