View source: R/misc functions.R
| box_zoom | R Documentation | 
This function can be used with ggplot and uses an sf object to adjust the plotting window according to a bounding box. If you want more breathing space use st_buffer when providing 'sf'.
box_zoom(sf)
sf | 
 an sf object that you want to crop the plot window to  | 
Add to a ggplot with the standard '+' syntax to adjust the plotting window.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.