Skip to content

Add orientation argument to geom_ribbon example as it is ambiguous #3605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions R/geom-ribbon.r
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
#' h + geom_ribbon(aes(ymin=0, ymax=level))
#' h + geom_area(aes(y = level))
#'
#' # Change orientation be switching the mapping
#' h + geom_area(aes(x = level, y = year))
#' # Orientation cannot be deduced by mapping, so must be given explicitly for
#' # flipped orientation
#' h + geom_area(aes(x = level, y = year), orientation = "y")
#'
#' # Add aesthetic mappings
#' h +
Expand Down
5 changes: 3 additions & 2 deletions man/geom_ribbon.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.