tidyverse / ggplot2

An implementation of the Grammar of Graphics in R
https://ggplot2.tidyverse.org
Other
6.45k stars 2.02k forks source link

Should `coord_trans` be renamed to `coord_transform` for API consistency? #5825

Open davidhodge931 opened 5 months ago

teunbrand commented 5 months ago

I'm not against this, but if it is renamed we should keep coord_trans() around for backward compatibility.

The following is tangential to this particular issue. As #5821 also calls for renaming stuff, we might want to think about lifecycles of renamed functions for the future (perhaps also for {scales} palettes/transformations/label/break functions). I imagine at a certain point we might want to start discouraging using the old names of functions. The lifecycle guidance all requires changes to the function body, which is inconvenient when functions are synonyms defined as:

new_name <- function(...){...}
old_name <- new_name
teunbrand commented 4 months ago

I'm proposing this for tidy dev day