powered by
Plot a Tornado Plot object
# 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"), ... )
the plot
a tornado_plot object
tornado_plot
boolean to determine if the plot is displayed, or just returned
the number of variables to plot
a label for the x-axis
a two element character vector of the bar colors for a lower value and upper value
a list of ggplot2::geom_bar options
ggplot2::geom_bar
a list of ggplot2::geom_point
ggplot2::geom_point
future arguments
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