{"repo":"cidm-ph/ggmapinset","free":true,"listed":false,"github":"https://github.com/cidm-ph/ggmapinset","clone":"git clone https://github.com/cidm-ph/ggmapinset.git","description":"Add zoomed inset panels to your ggplot maps","language":"R","stars":38,"topics":["data-visualization","geospatial","ggplot-extension","ggplot2"],"license":null,"category":"analytics","readme_excerpt":"ggmapinset Add zoomed inset panels to your ggplot maps. Installation You can install ggmapinset like so: Replacing ‘ggplot2’ sf layers {ggmapinset} provides drop-in replacements for each of the {sf} -related layers from {ggplot2} : ggplot2 function ggmapinset replacement :------------------------ :------------------------------ geom sf() geom sf inset() geom sf text() geom sf text inset() geom sf label() geom sf label inset() stat sf() stat sf inset() stat sf coordinates() stat sf coordinates inset() coord sf() coord sf inset() The replacements work the same as their normal versions but copy, zoom, and clip the layers to make the inset work. The stats can be used to add inset support to geoms from third-party packages. For extension developers, tools are provided to make {sf} -based layers inset-aware (see {ggautomap} for examples). Example This example adds an inset to the first example from ggplot2::geom sf() . The inset area is defined as a circle centred on the named county, with radius 50 miles. The inset is enlarged by a factor of 2 and shifted to an empty part of the map. For more information, see the online documentation and vignette(\"ggmapinset\") . Limitations The package implements insets by duplicating and transforming spatial data within a single coordinate system. That means that you don’t get separate grid lines for the inset panel and, more significantly, the inset can be distorted by the projection of the base map if you move it too far. This tends not to be a","default_branch":null,"files":null,"tree":[],"storefront":"/r/cidm-ph","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cidm-ph/ggmapinset/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}