io_plot_wiot_map: Visualize data for WIOD countries

View source: R/io_plot_wiot_map.R

io_plot_wiot_mapR Documentation

Visualize data for WIOD countries

Description

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.

Usage

io_plot_wiot_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 WIOD 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 WIOD countries filled with the appropriate color


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