Skip to content

Commit

Permalink
load fewer things in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Jul 8, 2022
1 parent fe9477b commit 99b362c
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 18 deletions.
2 changes: 1 addition & 1 deletion R/annotation-map-tile.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#' @examples
#' \donttest{
#' library(ggplot2)
#' load_longlake_data()
#' load_longlake_data(which = "longlake_waterdf")
#'
#' ggplot() +
#' annotation_map_tile(zoom = 13, cachedir = system.file("rosm.cache", package = "ggspatial")) +
Expand Down
4 changes: 1 addition & 3 deletions R/df-spatial.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
#' @export
#'
#' @examples
#' \donttest{
#' load_longlake_data()
#' load_longlake_data(which = c("longlake_osm", "longlake_depthdf"))
#' df_spatial(longlake_osm)
#' df_spatial(longlake_depthdf)
#' df_spatial(as(longlake_depthdf, "Spatial"))
#' }
#'
df_spatial <- function(x, ...) {
UseMethod("df_spatial")
Expand Down
2 changes: 1 addition & 1 deletion R/geom-polypath.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#'
#' @examples
#' library(ggplot2)
#' load_longlake_data()
#' load_longlake_data(which = "longlake_waterdf")
#' ggplot(df_spatial(longlake_waterdf), aes(x, y, group = piece_id)) +
#' geom_polypath()
#'
Expand Down
2 changes: 1 addition & 1 deletion R/layer-spatial-bbox.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#'
#' @examples
#' library(ggplot2)
#' load_longlake_data()
#' load_longlake_data(which = c("longlake_waterdf", "longlake_depthdf"))
#' ggplot() +
#' layer_spatial(sf::st_bbox(longlake_waterdf)) +
#' layer_spatial(longlake_depthdf)
Expand Down
2 changes: 1 addition & 1 deletion R/layer-spatial-raster.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#'
#' @examples
#' library(ggplot2)
#' load_longlake_data()
#' load_longlake_data(which = c("longlake_osm", "longlake_depth_raster"))
#' ggplot() + layer_spatial(longlake_osm)
#' ggplot() + layer_spatial(longlake_depth_raster) + scale_fill_continuous(na.value = NA)
#'
Expand Down
8 changes: 7 additions & 1 deletion R/layer-spatial.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
#'
#' @examples
#' library(ggplot2)
#' load_longlake_data()
#' load_longlake_data(
#' which = c(
#' "longlake_roadsdf",
#' "longlake_depthdf",
#' "longlake_depth_raster"
#' )
#' )
#'
#' ggplot() +
#'
Expand Down
2 changes: 1 addition & 1 deletion R/longlake-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' Open Street Map (<https://www.openstreetmap.org/>).
#'
#' @examples
#' load_longlake_data()
#' load_longlake_data(which = "longlake_waterdf")
#'
load_longlake_data <- function(env = parent.frame(), vector_format = c("sf", "sp"),
raster_format = c("raster", "stars", "stars_proxy", "terra"),
Expand Down
2 changes: 1 addition & 1 deletion man/annotation_map_tile.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions man/df_spatial.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/geom_polypath.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/layer_spatial.Raster.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion man/layer_spatial.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/layer_spatial.bbox.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/load_longlake_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 99b362c

Please sign in to comment.