plot.MultiQR: Fan plot for 'MultiQR' objects

View source: R/plotMQR.R

plot.MultiQRR Documentation

Fan plot for MultiQR objects

Description

This S3 method for plot produces a fan plot of a MultiQR object.

Usage

## S3 method for class 'MultiQR'
plot(
  plotdata,
  targetTimes = NULL,
  quantiles = colnames(plotdata),
  ylim = "auto",
  q50_line = F,
  Legend = NULL,
  cols = colorRampPalette(c("dodgerblue1", "cyan")),
  ...
)

Arguments

plotdata

A MultiQR object to be plotted.

targetTimes

A vector of forecast target times corresponding to plotdata.

quantiles

A charater vector. By default colnames(plotdata), i.e. all available quantiles. Alternatively, a subset may be specified here.

ylim

Passed to plot. Defaults to "auto" which set ylim equal to the range of plotdata expanded by 20%.

q50_line

Should q50 be plotted as a distinct line? Not advised. This can mis-lead users who may interpret it as the most likely temporal trajectory.

Legend

Location of legend to be produced. E.g. "topleft"

cols

Color scheme. May be a list of colors with length >=floor(length(qunatiles)/2) or function that returns a vector of colors, e.g. colorRampPalette().

...

Additional arguments passed to plot().

Details

If is.null(targetTimes) row indexes of plotdata are used.

Value

A plot of a MQR.

Author(s)

Jethro Browell, jethro.browell@strath.ac.uk


jbrowell/ProbCast documentation built on July 20, 2024, 1:53 p.m.