Learn R Programming

tornado (version 0.1.3)

plot.tornado_plot: Plot a Tornado Plot object

Description

Plot a Tornado Plot object

Usage

# S3 method for 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"),
  ...
)

Value

the plot

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

Examples

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

Run the code above in your browser using DataLab