View source: R/world_map_plot.R
world_map_plot | R Documentation |
Creates a plot of world with color coding.
world_map_plot(data, modelname = "Model X", white = TRUE)
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. |
This function creates a plot of a map with different colors for different countries.
A plot
Yves R. Sagaert
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.