Learn R Programming

A3 (version 1.0.0)

plotPredictions: Plot Predicted versus Observed

Description

Plots an 'A3' object's values showing the predicted versus observed values for each observation.

Usage

plotPredictions(x, show.equality = TRUE, xlab = "Observed Value", ylab = "Predicted Value", main = "Predicted vs Observed", ...)

Arguments

x
an A3 object,
show.equality
if true plot a line at 45-degrees.
xlab
the x-axis label.
ylab
the y-axis label.
main
the plot title.
...
additional options provided to the plot function.

Examples

Run this code
data(multifunctionality)
 x <- a3.lm(MUL ~ ., multifunctionality, p.acc = NULL, features = FALSE)
 plotPredictions(x)

Run the code above in your browser using DataLab