Skip to content

Commit 85bd22c

Browse files
authored
Cover interactions in coord_flip() (#5726)
1 parent d527a6e commit 85bd22c

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

R/coord-flip.R

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@
1111
#' the `orientation` setting, and converting the display of y conditional on x,
1212
#' to x conditional on y.
1313
#'
14+
#' @details
15+
#' Coordinate systems interact with many parts of the plotting system. You can
16+
#' expect the following for `coord_flip()`:
17+
#'
18+
#' * It does *not* change the facet order in `facet_grid()` or `facet_wrap()`.
19+
#' * The `scale_x_*()` functions apply to the vertical direction,
20+
#' whereas `scale_y_*()` functions apply to the horizontal direction. The
21+
#' same holds for the `xlim` and `ylim` arguments of `coord_flip()` and the
22+
#' `xlim()` and `ylim()` functions.
23+
#' * The x-axis theme settings, such as `axis.line.x` apply to the horizontal
24+
#' direction. The y-axis theme settings, such as `axis.text.y` apply to the
25+
#' vertical direction.
26+
#'
1427
#' @export
1528
#' @inheritParams coord_cartesian
1629
#' @examples

man/coord_flip.Rd

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

0 commit comments

Comments
 (0)