Skip to content

Commit

Permalink
fixes #725
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Nov 19, 2024
1 parent 9efc5c9 commit fd85151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/tidyverse.R
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ geom_stars = function(mapping = NULL, data = NULL, ..., downsample = 0, sf = FAL
if (is.null(mapping)) {
mapping = ggplot2::aes(fill = !!rlang::sym(names(data)[1])) } else {
mapping = modifyList( ggplot2::aes(fill = !!rlang::sym(names(data)[1])), mapping) }
ggplot2::geom_sf(data = st_as_sf(data, long = TRUE), color = NA, mapping = mapping, ...)
ggplot2::geom_sf(data = st_as_sf(data, long = TRUE), mapping = mapping, ...)
} else
stop("geom_stars only works for objects with raster or vector geometries")

Expand Down

0 comments on commit fd85151

Please sign in to comment.