|
1 | 1 | #' Set scale limits
|
2 | 2 | #'
|
3 |
| -#' This is a shortcut for supplying the `limits` argument to the |
4 |
| -#' individual scales. Note that, by default, any values outside the limits |
5 |
| -#' will be replaced with `NA`. |
| 3 | +#' This is a shortcut for supplying the `limits` argument to the individual |
| 4 | +#' scales. By default, any values outside the limits specified are replaced with |
| 5 | +#' `NA`. Be warned that this will remove data outside the limits and this can |
| 6 | +#' produce unintended results. For changing x or y axis limits \strong{without} |
| 7 | +#' dropping data observations, see [coord_cartesian()]. |
6 | 8 | #'
|
7 | 9 | #' @param ... For `xlim()` and `ylim()`: Two numeric values, specifying the left/lower
|
8 | 10 | #' limit and the right/upper limit of the scale. If the larger value is given first,
|
|
17 | 19 | #' A character or factor value will create a discrete scale.
|
18 | 20 | #' A date-time value will create a continuous date/time scale.
|
19 | 21 | #'
|
20 |
| -#' @seealso For changing x or y axis limits \strong{without} dropping data |
21 |
| -#' observations, see [coord_cartesian()]. To expand the range of |
22 |
| -#' a plot to always include certain values, see [expand_limits()]. For other |
23 |
| -#' types of data, see [scale_x_discrete()], [scale_x_continuous()], [scale_x_date()]. |
| 22 | +#' @seealso To expand the range of a plot to always include |
| 23 | +#' certain values, see [expand_limits()]. For other types of data, see |
| 24 | +#' [scale_x_discrete()], [scale_x_continuous()], [scale_x_date()]. |
24 | 25 | #'
|
25 | 26 | #' @export
|
26 | 27 | #' @examples
|
|
0 commit comments