Skip to content

Commit acca143

Browse files
committed
update docs
1 parent 4de1ee8 commit acca143

6 files changed

Lines changed: 10 additions & 309 deletions

File tree

R/insetplot-package.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#'
3131
#' # Approach 1: shared base plot for all subplots
3232
#' config_insetmap(
33-
#' data_list = list(nc),
33+
#' bbox = st_bbox(nc),
3434
#' specs = list(
3535
#' inset_spec(main = TRUE),
3636
#' inset_spec(
@@ -48,7 +48,7 @@
4848
#'
4949
#' # Approach 2: provide custom plots in each spec
5050
#' config_insetmap(
51-
#' data_list = list(nc),
51+
#' bbox = st_bbox(nc),
5252
#' specs = list(
5353
#' inset_spec(main = TRUE, plot = base_map),
5454
#' inset_spec(

R/with_inset.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ map_border <- function(color = "black", linewidth = 1, fill = "white", ...) {
6262
#' nc <- sf::st_read(system.file("shape/nc.shp", package = "sf"), quiet = TRUE)
6363
#'
6464
#' config_insetmap(
65-
#' data_list = list(nc),
65+
#' bbox = st_bbox(nc),
6666
#' specs = list(
6767
#' inset_spec(main = TRUE),
6868
#' inset_spec(
@@ -82,7 +82,7 @@ map_border <- function(color = "black", linewidth = 1, fill = "white", ...) {
8282
#'
8383
#' # Or supply custom plots in each inset_spec, then call with_inset() without plot
8484
#' config_insetmap(
85-
#' data_list = list(nc),
85+
#' bbox = st_bbox(nc),
8686
#' specs = list(
8787
#' inset_spec(main = TRUE, plot = base),
8888
#' inset_spec(
@@ -270,7 +270,7 @@ with_inset <- function(plot = NULL, .cfg = last_insetcfg(), .as_is = FALSE, .ret
270270
#' nc <- sf::st_read(system.file("shape/nc.shp", package = "sf"), quiet = TRUE)
271271
#'
272272
#' config_insetmap(
273-
#' data_list = list(nc),
273+
#' bbox = st_bbox(nc),
274274
#' specs = list(
275275
#' inset_spec(main = TRUE),
276276
#' inset_spec(

man/ggsave_inset.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/insetplot-package.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/with_inset.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/README.md

Lines changed: 0 additions & 299 deletions
This file was deleted.

0 commit comments

Comments
 (0)