From 3e65360ca47dd91f4c7635ec9f7615bbf844ae50 Mon Sep 17 00:00:00 2001 From: Andrea Gilardi Date: Mon, 22 Jan 2024 18:10:02 +0100 Subject: [PATCH] Add reset = FALSE into the plot call As reported in the docs, reset = FALSE is used to allow the inclusion of further map elements --- R/graticule.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/graticule.R b/R/graticule.R index 5ba6444f8..bc43ff4a3 100644 --- a/R/graticule.R +++ b/R/graticule.R @@ -38,7 +38,7 @@ #' c( bb[3],bb[4]),c( bb[1],bb[4]),c( bb[1],bb[2]))) #' #' g = st_graticule(usa) -#' plot(usa, xlim = 1.2 * c(-2450853.4, 2186391.9)) +#' plot(usa, xlim = 1.2 * c(-2450853.4, 2186391.9), reset = FALSE) #' plot(g[1], add = TRUE, col = 'grey') #' plot(bbox, add = TRUE) #' points(g$x_start, g$y_start, col = 'red')