Skip to content

Commit fca4be5

Browse files
committed
adjust documentation
1 parent 2a5c700 commit fca4be5

File tree

4 files changed

+33
-18
lines changed

4 files changed

+33
-18
lines changed

R/coord-cartesian-.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
#' (default) keeps directions as is. `"x"` and `"y"` can be used to reverse
3030
#' their respective directions. `"xy"` can be used to reverse both
3131
#' directions.
32+
#' @param ratio aspect ratio, expressed as `y / x`. Can be `NULL` (default) to
33+
#' not use an aspect ratio. Using `1` ensures that one unit on the x-axis
34+
#' is the same length as one unit on the y-axis. Ratios higher than one make
35+
#' units on the y-axis longer than units on the x-axis, and vice versa.
3236
#' @export
3337
#' @examples
3438
#' # There are two ways of zooming the plot display: with scales or

R/coord-fixed.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#' Cartesian coordinates with fixed "aspect ratio"
22
#'
3+
#' `r lifecycle::badge("superseded")` This coordinate system can be replaced by
4+
#' using the `coord_cartesian(ratio)` argument.\cr\cr
35
#' A fixed scale coordinate system forces a specified ratio between the
46
#' physical representation of data units on the axes. The ratio represents the
57
#' number of units on the y-axis equivalent to one unit on the x-axis. The
@@ -10,7 +12,7 @@
1012
#'
1113
#' @export
1214
#' @inheritParams coord_cartesian
13-
#' @param ratio aspect ratio, expressed as `y / x`
15+
#' @inheritDotParams coord_cartesian
1416
#' @examples
1517
#' # ensures that the ranges of axes are equal to the specified ratio by
1618
#' # adjusting the plot aspect ratio

man/coord_cartesian.Rd

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/coord_fixed.Rd

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

0 commit comments

Comments
 (0)