Hola! Aguien sabe cómo puedo colorear algunos países dentro del mapa mundi?
La idea es que se visualice el mapamundi y en un color diferente algunos países como "Paraguay" , "Chile", "Perú", "México" .
Utilicé este scripts:
library(mapdata)
library(ggplot2)
library(maps)
library(ggrepel)
library(dplyr)
mapa_mundo <- map_data("world")
mapa_mundo %>%
ggplot() +
geom_polygon(aes( x= long, y = lat, group = group),
fill = "grey80",
color = "white") +
theme_minimal() +
theme(
axis.line = element_blank(),
axis.text = element_blank(),
axis.title = element_blank(),
axis.ticks = element_blank(),
panel.background = element_rect(colour= "black", size= 1)) +
ggtitle( "Mapa Mundi")