ternvis-package

Visualisation, verification and calibration of ternary forecast data

Visualisation, verification and calibration of ternary forecast data

A suite of functions for visualising ternary probabilistic forecasts. package

Details

Package:ternvis
Type:Package
Version:1.3
Date:2025-03-27
License:GPL-2

Colours can be assigned to ternary probabilistic forecasts using tcolour. These colours can be used to produce forecast maps as in the example function tmap. A set of ternary forecasts p can be compared with subsequent ternary observations o using the function tverify. plot.tverify then displays this information in a Ternary Reliability Diagram. Calibration is performed using tgetcal and tcalibrate.

Author(s)

Tim Jupp

Maintainer: Tim Jupp t.e.jupp@exeter.ac.uk

References

Jupp TE, Lowe R, Stephenson DB, Coelho CAS (2012) On the visualization, verification and recalibration of ternary probabilistic forecasts, Philosophical Transactions of the Royal Society, volume 370, pages 1100-1120.

https://rsta.royalsocietypublishing.org/content/370/1962/1100.full/

https://arxiv.org/abs/1103.1303/

See Also

Some concepts adapted from those in package vcd.

Examples

data(foot) # see the distribution of forecasts tplot(foot$p,main="Bookmaker forecasts of \n football matches", dimnames=c("Home Win","Draw","Away Win")) # see how well forecasts compare with results # create object of class tverify foot.verify <- tverify(p=foot$p,o=foot$o) # plot ternary reliability diagram dev.new() plot(foot.verify, thresh=3) # get a (linear) calibration of these data # create an object of class tverify foot.calib <- tgetcal(foot.verify) # plot ternary reliability diagram of calibrated dev.new() plot(foot.calib, thresh=3) data(rain) tmap(rain,iyr=17,palette=TRUE,circles=FALSE,fac=10)
  • Maintainer: Tim Jupp
  • License: GPL-2
  • Last published: 2025-03-28

Useful links