Skip to content

Commit 1a5c225

Browse files
Fix argument of geom_ribbon() and geom_area() to match with GeomRibbon
1 parent e38b438 commit 1a5c225

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

R/geom-ribbon.r

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ geom_ribbon <- function(mapping = NULL, data = NULL,
4848
orientation = NA,
4949
show.legend = NA,
5050
inherit.aes = TRUE,
51-
outline.type = c("both", "upper", "legacy")) {
52-
outline.type <- match.arg(outline.type)
51+
outline.type = "both") {
52+
outline.type <- match.arg(outline.type, c("both", "upper", "legacy"))
5353

5454
layer(
5555
data = data,
@@ -177,8 +177,8 @@ GeomRibbon <- ggproto("GeomRibbon", Geom,
177177
geom_area <- function(mapping = NULL, data = NULL, stat = "identity",
178178
position = "stack", na.rm = FALSE, orientation = NA,
179179
show.legend = NA, inherit.aes = TRUE, ...,
180-
outline.type = c("upper", "both", "legacy")) {
181-
outline.type <- match.arg(outline.type)
180+
outline.type = "upper") {
181+
outline.type <- match.arg(outline.type, c("both", "upper", "legacy"))
182182

183183
layer(
184184
data = data,

man/geom_ribbon.Rd

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)