View source: R/io_plot_wiot_map.R
io_plot_wiot_map | R Documentation |
Plots a concise map of all countries from the World Input Output Database's (WIOD) 2016 release, spit into three groups (broadly Asia, Americas, Europe), to obtain a larger visualization for individual countries. Countries will be colored according to the dataset passed to the function.
io_plot_wiot_map(
plot_data,
row_label = FALSE,
percent = FALSE,
suffix = NULL,
digits = 2,
reverse_colors = FALSE
)
plot_data |
dataframe/tibble containint a column "country" with iso3 codes from the WIOD and another column holding the data to visualize on a map |
row_label |
if TRUE a label with the value of 'ROW' in ' |
percent |
multiplies label values by 100, TRUE/FALSE |
suffix |
character suffix to add to labels, e.g. "%" |
digits |
number of digits to round labels to |
reverse_colors |
if TRUE color scale will be reversed |
Return a plot of all WIOD countries filled with the appropriate color
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.