plot.tornado: Draw a Tornado Chart

View source: R/plot.tornado.R

plot.tornadoR Documentation

Draw a Tornado Chart

Description

Draws a Tornado chart as provided by tornado or tornadounc.

Usage

## S3 method for class 'tornado'
plot(
  x,
  which = 1,
  name = NULL,
  stat = c("median", "mean"),
  xlab = "method",
  ylab = "",
  ...
)

## S3 method for class 'tornadounc'
plot(
  x,
  which = 1,
  stat = "median",
  name = NULL,
  xlab = "method",
  ylab = "",
  ...
)

Arguments

x

a tornado or tornadounc object.

which

which output to plot (for multivariate output).

name

vector of names for input variables. If ‘⁠NULL⁠’, taken from the object.

stat

the statistic of the output to be considered. For a ‘⁠tornado⁠’ object: ‘⁠"median"⁠’ or ‘⁠"mean"⁠’. For a ‘⁠tornadounc⁠’ object: should match a row name, or use the row number.

xlab

label of the x axis. If ‘⁠"method"⁠’, use the correlation method.

ylab

label of the y axis.

...

further arguments to be passed to the ‘⁠plot⁠’ function.

Details

A point is drawn at the estimate, and the segment reflects the uncertainty around it.

Value

‘⁠NULL⁠’ (called for side effects).

See Also

tornado

Examples

data(ec)
x <- evalmcmod(ec$modEC2, nsv=100, nsu=100, seed=666)
tor <- tornado(x, 7)
plot(tor)

mc2d documentation built on Oct. 23, 2026, 1:06 a.m.