Hello everyone. I have the following code. It plots the shape of some countries. As can be seen, I want to use the palette Bluges to have the countries in the same colors.
library(maps)
library(ggplot2)
library(dplyr)
library(RColorBrewer)
p=c("Brazil", "Argentina", "Chile", "Uruguay", "Paraguay", "Ecuador", "Peru", "Venezuela",
"Colombia", "Bolivia", "French Guiana", "Surinam", "Guyana")
mp<-map_data("world", region=p)
mlola <- mp %>% group_by(region) %>%
summarize(mlo= mean(long), mla=mean(lat))
ggplot(mp,aes( x= long, y = lat, group=group, fill=region)) +
geom_polygon(aes(color="Bluges"))+
theme(panel.background = element_rect(fill=NA))
However, if I execute the code, geom_polygon(aes(color="Bluges"))+
has no effect at all on the resulting plot.
Can someone please tell me how to change this to have all the countries in different shades of blue?
Best regards.