Skip to content

Commit 9f0fc2d

Browse files
authored
Fix #3539 Make sure tiles that runs outside the scale limits are removed (#3547)
1 parent fc60051 commit 9f0fc2d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# ggplot2 (development version)
22

3+
* Fix a bug in `geom_raster()` that squeezed the image when it went outside
4+
scale limits (#3539, @thomasp85)
5+
36
* The evaluation time of aesthetics can now be controlled to a finer degree.
47
`after_stat()` superseeds the use of `stat()` and `..var..`-notation, ad is
58
joined by `after_scale()` to allow for mapping to scaled aesthetic values.

R/geom-raster.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ geom_raster <- function(mapping = NULL, data = NULL,
4545
#' @export
4646
GeomRaster <- ggproto("GeomRaster", Geom,
4747
default_aes = aes(fill = "grey20", alpha = NA),
48-
non_missing_aes = "fill",
48+
non_missing_aes = c("fill", "xmin", "xmax", "ymin", "ymax"),
4949
required_aes = c("x", "y"),
5050

5151
setup_data = function(data, params) {

0 commit comments

Comments
 (0)