Skip to content

Commit cc8a16c

Browse files
committed
supersede expand_limits()
1 parent f992f88 commit cc8a16c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

R/limits.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ limits.POSIXlt <- function(lims, var, call = caller_env()) {
159159

160160
#' Expand the plot limits, using data
161161
#'
162+
#' `r lifecycle::badge("superseded")`: It is recommended to pass a function to
163+
#' the `limits` argument in scales instead. For example:
164+
#' `scale_x_continuous(limits = ~range(.x, 0))` to include zero.\cr\cr
162165
#' Sometimes you may want to ensure limits include a single value, for all
163166
#' panels or all plots. This function is a thin wrapper around
164167
#' [geom_blank()] that makes it easy to add such values.

man/expand_limits.Rd

Lines changed: 3 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)