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)

* Better compatibility of custom device functions in `ggsave()`
(@thomasp85, #4539)

* Binning scales are now more resilient to calculated limits that ends up being
`NaN` after transformations (@thomasp85, #4510)

Expand Down
1 change: 1 addition & 0 deletions R/save.r
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ plot_dev <- function(device, filename = NULL, dpi = 300) {
call_args <- list()
if ("file" %in% names(args)) {
call_args$file <- filename
call_args["filename"] <- list(NULL)
}
if ("res" %in% names(args)) {
call_args$res <- dpi
Expand Down