How to create a world map with enlarged some small areas with r

152 Views Asked by At

Thank you for your kind interest.

I am trying to plot a world map with small enlarged areas (e.g., the Caribbean, Balkan peninsula, et.al). It is easy to plot a world map, but it is difficult for me to draw a figure similar to the one below. Is there any method to draw figures like the one below? Or can you please introduce me a software that can draw a similar figure?

Please find the figure example here

Thanks!

1

There are 1 best solutions below

1
JACKY88 On

If you use ggplot, you can specify xlim and ylim in the coordinates.

library(ggplot2)
usa <- map_data("usa")

ggplot() + geom_polygon(data = usa, aes(x=long, y = lat, group = group)) + 
  coord_fixed(1.3)

ggplot() + geom_polygon(data = usa, aes(x=long, y = lat, group = group)) + 
  coord_fixed(1.3, xlim = c(-110, -80), ylim = c(30, 50))

enter image description here

enter image description here