valplot

0th

Percentile

valplot

Plots predicted values versus observed values in a coordinate system with the same range of both axes.

Usage
valplot(
  o,
  p,
  main = NA,
  sub = NA,
  xlab = "Observed value",
  ylab = "Predicted value"
)
Arguments
o

A numeric vector. Observed values.

p

A numeric vector. Predicted values.

main

A character value. The main title of the plot.

sub

A character value. The subtitle of the plot.

xlab

A character value. The x axis label.

ylab

A character value. The y axis label.

Details

Circles represent the data, dashed line represents observed = predicted and solid line represents an

Value

A scatter plot of observed and predicted values.

Aliases
  • valplot
Examples
# NOT RUN {
obs<-c(1:10)
pred<-c(1, 1 ,3, 5, 4, 5, 6, 8, 11, 10)
t1='Measured variable (unit)'
evalue<-round(e(o=obs, p=pred),2)
maevalue<-round(mae(o=obs, p=pred),1)
t2=paste('E = ', evalue, '; MAE = ', maevalue, ' units')
valplot(o=obs, p=pred, main=t1, sub=t2)
# }
Documentation reproduced from package valmetrics, version 1.0.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.