View source: R/io_plot_icio_map.R
io_plot_icio_map | R Documentation |
Plots a concise map of all countries from the OECD ICIO Database, split 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. Due to its geographic location the value for south africa is not visualized but added as a label (ZAF).
io_plot_icio_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 ICIO 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 ICIO countries filled with the appropriate color
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.