Skip to content

Commit

Permalink
use waiver() for NULL data, which comply with ggplot2
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Dec 5, 2024
1 parent 64d7c09 commit 8ad015f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plot-free-gg.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ free_gg.ggplot <- function(..., data = waiver(), size = NULL, active = NULL) {
plot <- data
# In ggplot2, `waiver()` was regard to no data
data <- .subset2(plot, "data") %|w|% NULL
plot["data"] <- list(NULL)
plot["data"] <- list(waiver())
new_free_gg(plot, data, size = size, active = active)
}

Expand Down

0 comments on commit 8ad015f

Please sign in to comment.