Learn R Programming

mdatools (version 0.8.2)

plotPredictions.regres: Predictions plot for regression results

Description

Shows plot with predicted y values.

Usage

# S3 method for regres
plotPredictions(obj, ny = 1, ncomp = NULL, show.line = T,
  col = mdaplot.getColors(1), ...)

Arguments

obj

regression results (object of class regres)

ny

number of predictor to show the plot for (if y is multivariate)

ncomp

complexity of model (e.g. number of components) to show the plot for

show.line

logical, show or not line fit for the plot points

col

color for the plot objects.

...

other plot parameters (see mdaplot for details)

Details

If reference values are available, the function shows a scatter plot with predicted vs. reference values, otherwise predicted values are shown vs. object numbers.