I've got two ggplot maps which both use the same shapefile. One is the data and the other is the names of each country. Currently they are in seperate ggplots but how do I add the names over the top of my existing one (plot1)?
cnames <- aggregate(cbind(long, lat) ~ region, data=map,
FUN=function(x)mean(range(x)))
names <-ggplot(map, aes(long, lat)) +
geom_polygon(aes(x = long, y = lat, group=group), colour='black', fill=NA) +
geom_text(data=cnames, aes(long, lat, label = region), size=2) +
coord_map()
plot1 <- ggplot(map, aes(x=long,y = lat, group = group, fill = map$`data`)) + geom_polygon(colour="black") + coord_map("polyconic") + labs(fill = "data") + theme(axis.title.x=element_blank(),axis.text.x=element_blank(),
axis.ticks.x=element_blank(),axis.title.y=element_blank(),axis.text.y=element_blank(),axis.ticks.y=element_blank())
plot1 <- plot1 + ggtitle("data")
plot1 <- plot1 + scale_fill_gradient2(low = muted("grey"), high = muted("deepskyblue4"))