View source: R/tornado_chart_plot.R
Create tornado chart of one year/variable from processed data
1 2 3 |
data |
Dataframe/tibble of processed GCAM data |
output_dir |
Output directory to save charts to |
ref_scenario |
Scenario to use as base for tornado to start from |
savename |
Name to save plot under |
plot_title |
Title to add, defaults to no title |
color_flip |
Default is green above, red below. Switch to T to flip |
region |
String of region name to filter by |
break_size |
Interval of years to print on x axis, starting with minimum year in data. Default is 10 years |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.