plot.murphydiag: Plotting Murphy diagram objects

Description Usage Arguments See Also

View source: R/plot.R

Description

Plotting Murphy diagram objects

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'murphydiag'
plot(x, resolution = 100, xlim = NULL,
  ylim = NULL, xlab = NULL, ylab = NULL, ..., add = FALSE,
  no_baseline = FALSE, empty = FALSE, lty = 1:5, col = 1:6)

## S3 method for class 'murphydiag'
lines(x, resolution = 100, ..., lty = 1:5,
  col = 1:6)

Arguments

x

an object inheriting from the class 'murphydiag'.

resolution

determines the smoothness (and accuracy) of the displayed lines:

  1. if NULL: all points returned by as.data.frame(x) are displayed.

  2. if c(n) or c(nx, ny): only points returned by m_filter(x, window, resolution) with window = par("usr") are displayed.

  3. if c(t1, t2, ..., tn): only points returned by m_approx(x, thresholds) with thresholds = resolution are displayed.

See as.data.frame, m_filter, m_approx.

xlim

the x limits (x1, x2) of the plot. Note that x1 > x2 is allowed and leads to a ‘reversed axis’.

The default value, NULL, indicates that the range of the finite values to be plotted should be used.

ylim

the y limits of the plot.

xlab

a label for the x axis, defaults to "threshold".

ylab

a label for the y axis, defaults to "mean score".

...

other graphical parameters (see par).

add

if TRUE, lines are added to the current plot.

no_baseline

if TRUE, no horizontal baseline at 0 is drawn.

empty

if TRUE, no Murphy diagram lines are drawn.

lty

vector of line types, recycled to length(x).

col

vector of colors, recycled to length(x).

See Also

murphydiag.

To display only a selection of Murphy diagram lines, consider subsetting (see [.murphydiag).


aijordan/murphydiagram2 documentation built on Jan. 1, 2020, 3:08 p.m.