diff --git a/NEWS.md b/NEWS.md index 91718c01..24bd42d3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,12 +1,17 @@ # metR (development version) +## Bug fixes + +- Longitude scales now properly pass the `trans`/`transform` argument. + # metR 0.16.0 ## New features -- `EOF()`'s `rotate` argument now will take a function to apply to the EOF loadings. `rotate = TRUE` is still supported but deprecated and will default to using `function(x) stats::varimax(x, normalize = FALSE)`. +- `EOF()`'s `rotate` argument now will take a function to apply to the EOF loadings. + `rotate = TRUE` is still supported but deprecated and will default to using `function(x) stats::varimax(x, normalize = FALSE)`. -- Contour functions gain a `proj.latlon` to decide if the projection needs to go to latlon coordinates or to projected coordinates. +- Contour functions gain a `proj.latlon` to decide if the projection needs to go to latlon coordinates or to projected coordinates. ## Breaking changes diff --git a/R/scale_longitude.R b/R/scale_longitude.R index db11461b..eb0b8c77 100644 --- a/R/scale_longitude.R +++ b/R/scale_longitude.R @@ -36,13 +36,11 @@ scale_x_longitude <- function(name = "", ticks = 30, breaks = seq(-180, 360, by = ticks), expand = c(0, 0), labels = LonLabel, - trans = "identity", ...) { # labels = waiver() ggplot2::scale_x_continuous(name = name, expand = expand, breaks = breaks, labels = labels, - trans = trans, ...) } @@ -52,7 +50,6 @@ scale_y_longitude <- function(name = "", ticks = 60, breaks = seq(-180, 360, by = ticks), expand = c(0, 0), labels = LonLabel, - trans = "identity", ...) { ggplot2::scale_y_continuous(name = name, expand = expand, breaks = breaks, diff --git a/man/metR.Rd b/man/metR.Rd index 43f0d33f..5e0259df 100644 --- a/man/metR.Rd +++ b/man/metR.Rd @@ -30,12 +30,11 @@ To get started, check the vignettes: Useful links: \itemize{ \item \url{https://eliocamp.github.io/metR/} - \item \url{https://github.com/eliocamp/metR} \item Report bugs at \url{https://github.com/eliocamp/metR/issues} } } \author{ -\strong{Maintainer}: Elio Campitelli \email{elio.campitelli@cima.fcen.uba.ar} (\href{https://orcid.org/0000-0002-7742-9230}{ORCID}) +\strong{Maintainer}: Elio Campitelli \email{eliocampitelli@gmail.com} (\href{https://orcid.org/0000-0002-7742-9230}{ORCID}) } diff --git a/man/scale_longitude.Rd b/man/scale_longitude.Rd index c1cbc2c5..d508b112 100644 --- a/man/scale_longitude.Rd +++ b/man/scale_longitude.Rd @@ -17,7 +17,6 @@ scale_x_longitude( breaks = seq(-180, 360, by = ticks), expand = c(0, 0), labels = LonLabel, - trans = "identity", ... ) @@ -27,7 +26,6 @@ scale_y_longitude( breaks = seq(-180, 360, by = ticks), expand = c(0, 0), labels = LonLabel, - trans = "identity", ... ) @@ -91,10 +89,10 @@ as output. Also accepts rlang \link[rlang:as_function]{lambda} function notation. }} +\item{...}{Other arguments passed on to \verb{scale_(x|y)_continuous()}} + \item{trans}{\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#deprecated}{\figure{lifecycle-deprecated.svg}{options: alt='[Deprecated]'}}}{\strong{[Deprecated]}} Deprecated in favour of \code{transform}.} - -\item{...}{Other arguments passed on to \verb{scale_(x|y)_continuous()}} } \description{ These functions are simple wrappers around diff --git a/metR.Rproj b/metR.Rproj index 1e93401e..c5d52680 100644 --- a/metR.Rproj +++ b/metR.Rproj @@ -1,4 +1,5 @@ Version: 1.0 +ProjectId: d63f6cba-48e1-4dfb-b6a9-368776a989fe RestoreWorkspace: No SaveWorkspace: No