|
4 | 4 | #' individual scales. Note that, by default, any values outside the limits
|
5 | 5 | #' will be replaced with `NA`.
|
6 | 6 | #'
|
7 |
| -#' @param ... A name-value pair. The name must be an aesthetic, and the value |
8 |
| -#' must be either a length-2 numeric, a character, a factor, or a date/time. |
| 7 | +#' @param ... For `xlim()` and `ylim()`: Two numeric values, specifying the left/lower |
| 8 | +#' limit and the right/upper limit of the scale. If the larger value is given first, |
| 9 | +#' the scale will be reversed. You can leave one value as `NA` if you want to compute |
| 10 | +#' the corresponding limit from the range of the data. |
| 11 | +#' |
| 12 | +#' For `lims()`: A name--value pair. The name must be an aesthetic, and the value |
| 13 | +#' must be either a length-2 numeric, a character, a factor, or a date/time. |
| 14 | +#' A numeric value will create a continuous scale. If the larger value comes first, |
| 15 | +#' the scale will be reversed. You can leave one value as `NA` if you want |
| 16 | +#' to compute the corresponding limit from the range of the data. |
| 17 | +#' A character or factor value will create a discrete scale. |
| 18 | +#' A date-time value will create a continuous date/time scale. |
9 | 19 | #'
|
10 |
| -#' A numeric value will create a continuous scale. If the larger value |
11 |
| -#' comes first, the scale will be reversed. You can leave one value as |
12 |
| -#' `NA` to compute from the range of the data. |
13 |
| -#' |
14 |
| -#' A character or factor value will create a discrete scale. |
15 |
| -#' |
16 |
| -#' A date-time value will create a continuous date/time scale. |
17 | 20 | #' @seealso For changing x or y axis limits \strong{without} dropping data
|
18 | 21 | #' observations, see [coord_cartesian()]. To expand the range of
|
19 | 22 | #' a plot to always include certain values, see [expand_limits()]. For other
|
|
0 commit comments