Learn R Programming

SciencesPo (version 1.4.1)

Calibrateplot: Calibrate Plot

Description

Plots a calibration plot for overlaping observed versus actual values.

Usage

Calibrateplot(.data = NULL, x, y, ci = 0.95, xlab = "Forecast Probability", ylab = "Observed Frequency")

Arguments

.data
the data frame.
x, y
are the forecast and observed data vectors.
ci
is the size of the confidence interval
xlab
a character name for horizontal axis.
ylab
a character name for vertical axis.

Examples

Run this code
data <- data.frame(x=c(10,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100),
y=c(0,05,10,20,25,30,40,50,60,70,75,80,95,100,100,100,100,100))

Calibrateplot(data, x, y)

Run the code above in your browser using DataLab