R ggmap Denmark Mapping – How to Create Map of Denmark Using ggmap

denmarkggmapggplot2r

I have installed the following two packages:

library(ggmap)
library(maps)

I have found code online to create a world map (see below).

How do I zoom the plot on a country level?

For example, Denmark.

ggplot()+
  borders("world", colour="gray50", fill="gray50")

Enter image description here

Best Answer

If we look at ?borders and, for more into, ?map, we see that we may use the regions argument:

ggplot() + borders(regions = "Denmark", colour = "gray50", fill = "gray50") 

enter image description here