Skip to content

Commit

Permalink
Cover interactions in coord_flip() (#5726)
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand authored Mar 18, 2024
1 parent d527a6e commit 85bd22c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
13 changes: 13 additions & 0 deletions R/coord-flip.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@
#' the `orientation` setting, and converting the display of y conditional on x,
#' to x conditional on y.
#'
#' @details
#' Coordinate systems interact with many parts of the plotting system. You can
#' expect the following for `coord_flip()`:
#'
#' * It does *not* change the facet order in `facet_grid()` or `facet_wrap()`.
#' * The `scale_x_*()` functions apply to the vertical direction,
#' whereas `scale_y_*()` functions apply to the horizontal direction. The
#' same holds for the `xlim` and `ylim` arguments of `coord_flip()` and the
#' `xlim()` and `ylim()` functions.
#' * The x-axis theme settings, such as `axis.line.x` apply to the horizontal
#' direction. The y-axis theme settings, such as `axis.text.y` apply to the
#' vertical direction.
#'
#' @export
#' @inheritParams coord_cartesian
#' @examples
Expand Down
14 changes: 14 additions & 0 deletions man/coord_flip.Rd

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

0 comments on commit 85bd22c

Please sign in to comment.