evmTrafficLight: Plot predicted return levels of a safety lab variable with...

Description Usage Arguments Details

View source: R/evmTrafficLight.R

Description

Plot predicted return levels of a safety lab variable with some guidance as to whether it seems safe, potentially suspect, or dangerous

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
evmTrafficLight(
  data = NULL,
  ptcol = "blue",
  loref = 1/1000,
  hiref = 1/200,
  refcol = c("green", "orange", "red"),
  linecol = c("blue", "blue"),
  ptsize = 4,
  linesize = c(0.5, 1.5),
  scales = "free",
  ncol = NULL,
  xlab = "P( > RL)",
  ylab = "",
  M,
  main = NULL,
  ...
)

Arguments

data

An object created by summary.simulate.margarita.prob

ptcol

The colour of points on the plot. Defaults to ptcol="blue"

loref

The lower reference level beneath which a return level is considered to be acceptably low

hiref

The upper reference level above which a return level is considered to be unacceptably high

refcol

Background colours for the acceptable, intermediate, and unaccepable return levels

linecol

Colour of the lines representing the credible intervals on the predicted return levels

ptsize

The size of the point estimate (median) predicted return level

linesize

The weight of the lines representing the credible intervals

scales

Whether to allow trellis panel scales to match each other or be free

ncol

The number of columns in the output plots

xlab

The x-axis label

ylab

The y-axis label

M

A vector specifying the return levels used

main

The main title

...

Other arguments to the plotting functions. Currently unused

Details

The function is a fairly simple modification of plot.summary.simulate.margarita.prob


harrysouthworth/margarita documentation built on Aug. 19, 2021, 5 a.m.