Hello there
I am creating a map showing the membership status of Mercosur trade bloc and I would like to label the countries to show their names and, if possible, their capitals as well. However, I am doing something wrong that the countries' names appear on the borders and not on the centroids.
The code that is working is below but doesn't include the countries nor the capitals.
Thank you in advance
plot Membership
p <- ggplot ()+
first layer: all countries, no fill, no white outlines
geom_polygon(data = South.maps,
aes(x = long, y = lat, group = group)) +
#second layer: only countries with a fill
geom_polygon(data = MSRmap,
aes(x = long,
y = lat,
group = group,
fill = Membership), colour = "white") +
scale_colour_discrete_qualitative() +
theme_minimal() +
labs(fill = "Membership status",
x = "",
y = "") +
ggtitle("Mercosur members (2020)") +
scale_y_discrete(breaks=c()) + # this is to remove scales from y axis
scale_x_discrete(breaks=c()) + # this is to remove scales from x axis
theme(plot.title = element_text(hjust = 0.5))
p # show the graph