plot.tornado_plot {tornado}R Documentation

Plot a Tornado Plot object

Description

Plot a Tornado Plot object

Usage

## S3 method for class 'tornado_plot'
plot(
  x,
  plot = TRUE,
  nvar = NA,
  xlabel = "Model Response",
  sensitivity_colors = c("grey", "#69BE28"),
  geom_bar_control = list(width = NULL),
  geom_point_control = list(fill = "black", col = "black"),
  ...
)

Arguments

x

a tornado_plot object

plot

boolean to determine if the plot is displayed, or just returned

nvar

the number of variables to plot

xlabel

a label for the x-axis

sensitivity_colors

a two element character vector of the bar colors for a lower value and upper value

geom_bar_control

a list of ggplot2::geom_bar options

geom_point_control

a list of ggplot2::geom_point

...

future arguments

Value

the plot

Examples

gtest <- lm(mpg ~ cyl*wt*hp, data = mtcars)
tp <- tornado(gtest, type = "PercentChange", alpha = 0.10, xlabel = "MPG")
plot(tp)

[Package tornado version 0.1.3 Index]