How to create a map of Denmark with ggmap

  • A+
Category:Languages

I have installed the following two packages:

library(ggmap) library(maps) 

I have found a 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")  

How to create a map of Denmark with ggmap

 


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")  

How to create a map of Denmark with ggmap

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: