Skip to content

Commit

Permalink
required aesthetics to non-missing aes
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Apr 24, 2024
1 parent be4b7b8 commit 6dc3ba8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/geom-rect.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ GeomRect <- ggproto("GeomRect", Geom,
default_aes = aes(colour = NA, fill = "grey35", linewidth = 0.5, linetype = 1,
alpha = NA),

required_aes = c("xmin", "xmax", "ymin", "ymax"),
optional_aes = c("x", "width", "xmin", "xmax", "y", "height", "ymin", "ymax"),
non_missing_aes = c("xmin", "xmax", "ymin", "ymax"),

draw_panel = function(self, data, panel_params, coord, lineend = "butt", linejoin = "mitre") {
data <- check_linewidth(data, snake_class(self))
Expand Down

0 comments on commit 6dc3ba8

Please sign in to comment.