Learn R Programming

MUVR2 (version 0.1.0)

plotMV: Plot predictions

Description

Plot predicted and actual target variables, with different plots depending on modelling approach.

Usage

plotMV(MUVRclassObject, model = "min", factCols, sampLabels, ylim = NULL)

Value

A plot of results from multivariate predictions

Arguments

MUVRclassObject

An MUVR class object

model

What type of model to plot ('min', 'mid' or 'max'). Defaults to 'mid'.

factCols

An optional vector with colors for the factor levels (in the same order as the levels)

sampLabels

Sample labels (optional; implemented for classification)

ylim

Optional for imposing y-limits for regression and classification analysis

Examples

Run this code
# \donttest{
data("freelive2")
nRep <- 2
nOuter <- 4
varRatio <-0.6
regrModel <- MUVR2(X = XRVIP2,
                   Y = YR2,
                   nRep = nRep,
                  nOuter = nOuter,
                   varRatio = varRatio,
                   method = "PLS",
                   modReturn = TRUE)
plotMV(regrModel, model="min")
# }

Run the code above in your browser using DataLab