Skip to content

Commit 5f7d696

Browse files
authored
Fix #3590 Add orientation argument to geom_ribbon doc as it is ambiguous (#3605)
1 parent e58be03 commit 5f7d696

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

R/geom-ribbon.r

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
#' h + geom_ribbon(aes(ymin=0, ymax=level))
3131
#' h + geom_area(aes(y = level))
3232
#'
33-
#' # Change orientation be switching the mapping
34-
#' h + geom_area(aes(x = level, y = year))
33+
#' # Orientation cannot be deduced by mapping, so must be given explicitly for
34+
#' # flipped orientation
35+
#' h + geom_area(aes(x = level, y = year), orientation = "y")
3536
#'
3637
#' # Add aesthetic mappings
3738
#' h +

man/geom_ribbon.Rd

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)