Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# ggplot2 (development version)

* Fix a bug in `geom_raster()` that squeezed the image when it went outside
scale limits (#3539, @thomasp85)

* The evaluation time of aesthetics can now be controlled to a finer degree.
`after_stat()` superseeds the use of `stat()` and `..var..`-notation, ad is
joined by `after_scale()` to allow for mapping to scaled aesthetic values.
Expand Down
2 changes: 1 addition & 1 deletion R/geom-raster.r
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ geom_raster <- function(mapping = NULL, data = NULL,
#' @export
GeomRaster <- ggproto("GeomRaster", Geom,
default_aes = aes(fill = "grey20", alpha = NA),
non_missing_aes = "fill",
non_missing_aes = c("fill", "xmin", "xmax", "ymin", "ymax"),
required_aes = c("x", "y"),

setup_data = function(data, params) {
Expand Down