world_map_plot: world map plot

View source: R/world_map_plot.R

world_map_plotR Documentation

world map plot

Description

Creates a plot of world with color coding.

Usage

world_map_plot(data, modelname = "Model X", white = TRUE)

Arguments

data

A dataframe with at least 2 columns: ISO code of the country and a color for the country.

modelname

Label for the plot of the world map

white

Boolean by default set on 'TRUE' to indicate the color of countries with value NA, or not included in data for the score.

Details

This function creates a plot of a map with different colors for different countries.

Value

A plot

Author(s)

Yves R. Sagaert

Examples

  ## Not run: 
    data <- data.frame(
     country_code = c("USA", "CAN", "BRA", "FRA", "DEU", "IND", "CHN"),
     score = c(1, 2, 3, 4, 5, 6, 7))
    world_map_plot(data)
  
## End(Not run)


yForecasting/businessplots documentation built on Jan. 8, 2025, 6:26 p.m.