Skip to content

Commit 6dc3ba8

Browse files
committed
required aesthetics to non-missing aes
1 parent be4b7b8 commit 6dc3ba8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/geom-rect.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ GeomRect <- ggproto("GeomRect", Geom,
3131
default_aes = aes(colour = NA, fill = "grey35", linewidth = 0.5, linetype = 1,
3232
alpha = NA),
3333

34-
required_aes = c("xmin", "xmax", "ymin", "ymax"),
34+
optional_aes = c("x", "width", "xmin", "xmax", "y", "height", "ymin", "ymax"),
35+
non_missing_aes = c("xmin", "xmax", "ymin", "ymax"),
3536

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

0 commit comments

Comments
 (0)