![making a map layer in pcswmm and zooming in making a map layer in pcswmm and zooming in](https://pbs.twimg.com/media/FFEcxN6WYAoK0NF.jpg)
Proj4string: +proj=longlat +datum=WGS84 +no_defsĠ Fiji Oceania MULTIPOLYGON (((180 -16.067.ġ Tanzania Africa MULTIPOLYGON (((33.90371 -0.Ģ W. Simple feature collection with 6 features and 2 fieldsībox: xmin: -180 ymin: -18.28799 xmax: 180 ymax: 83.23324 worldmap <- ne_countries(scale = 'medium', type = 'map_units', The result is a spatial dataset that can be processed with tools from the sf package. We load this data as a “simple feature collection” by specifying returnclass = 'sf'. Using ne_countries() from the package worldmap, we can get a spatial dataset with the borders of all countries in the world. We’ll need to load the following packages: library(ggplot2)
#Making a map layer in pcswmm and zooming in how to#
We will see how to calculate the coordinates of the display window or “bounding box” around this zoom point. I will show the advantages and disadvantages of these options and especially focus on how to zoom in on a certain point of interest at a specific “zoom level”. restricting the display window via coord_sf().cropping the geometries in the spatial dataset using sf_crop().
![making a map layer in pcswmm and zooming in making a map layer in pcswmm and zooming in](https://i.ytimg.com/vi/H1XhSLI7-bM/maxresdefault.jpg)
only certain countries / continent(s) / etc.)