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
data(multifunctionality)
x <- a3.lm(MUL ~ ., multifunctionality, p.acc = NULL, features = FALSE)
plotPredictions(x)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(A3)
Loading required package: xtable
Loading required package: pbapply
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/A3/plotPredictions.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plotPredictions
> ### Title: Plot Predicted versus Observed
> ### Aliases: plotPredictions
>
> ### ** Examples
>
> data(multifunctionality)
> x <- a3.lm(MUL ~ ., multifunctionality, p.acc = NULL, features = FALSE)
> plotPredictions(x)
>
>
>
>
>
> dev.off()
null device
1
>