io_plot_icio_map: Visualize data for ICIO countries

View source: R/io_plot_icio_map.R

io_plot_icio_mapR Documentation

Visualize data for ICIO countries

Description

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).

Usage

io_plot_icio_map(
  plot_data,
  row_label = FALSE,
  percent = FALSE,
  suffix = NULL,
  digits = 2,
  reverse_colors = FALSE
)

Arguments

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 'plot_data' will be placed in the ocean west of Australia

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

Value

Return a plot of all ICIO countries filled with the appropriate color


okrebs/iotr documentation built on Aug. 22, 2023, 12:06 p.m.