From 4f87460a4a7b836d02d91277227dca4b532fe1ff Mon Sep 17 00:00:00 2001 From: Diego H Date: Mon, 8 Apr 2024 16:29:10 +0200 Subject: [PATCH] Fix example --- R/geo_amenity_sf.R | 2 +- man/geo_amenity_sf.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/geo_amenity_sf.R b/R/geo_amenity_sf.R index a5d1a0d7..644c29e8 100644 --- a/R/geo_amenity_sf.R +++ b/R/geo_amenity_sf.R @@ -52,7 +52,7 @@ #' if (any(!sf::st_is_empty(rest_pub))) { #' ggplot(mad) + #' geom_sf() + -#' geom_sf(data = rest_pub, aes(color = amenity, shape = amenity)) +#' geom_sf(data = rest_pub, aes(color = type, shape = type)) #' } #' } geo_amenity_sf <- function( diff --git a/man/geo_amenity_sf.Rd b/man/geo_amenity_sf.Rd index fadb99c1..8f037971 100644 --- a/man/geo_amenity_sf.Rd +++ b/man/geo_amenity_sf.Rd @@ -116,7 +116,7 @@ rest_pub <- geo_amenity_sf(mad, c("restaurant", "pub", "school"), if (any(!sf::st_is_empty(rest_pub))) { ggplot(mad) + geom_sf() + - geom_sf(data = rest_pub, aes(color = amenity, shape = amenity)) + geom_sf(data = rest_pub, aes(color = type, shape = type)) } } \dontshow{\}) # examplesIf}