diff --git a/.buildlibrary b/.buildlibrary index 638225d..f6ef352 100644 --- a/.buildlibrary +++ b/.buildlibrary @@ -1,4 +1,4 @@ -ValidationKey: '70723008' +ValidationKey: '70742752' AutocreateReadme: yes AcceptedWarnings: - 'Warning: package ''.*'' was built under R version' diff --git a/CITATION.cff b/CITATION.cff index 0742094..7ad69cd 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -2,7 +2,7 @@ cff-version: 1.2.0 message: If you use this software, please cite it using the metadata from this file. type: software title: 'luplot: Landuse Plot Library' -version: 3.58.2 +version: 3.58.3 date-released: '2024-01-22' abstract: Some useful functions to plot data such as a map plot function for MAgPIE objects. diff --git a/DESCRIPTION b/DESCRIPTION index 1c981ec..05e1e51 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: luplot Title: Landuse Plot Library -Version: 3.58.2 +Version: 3.58.3 Date: 2024-01-22 Authors@R: c( person("Benjamin Leon", "Bodirsky", , "bodirsky@pik-potsdam.de", role = c("aut", "cre")), diff --git a/R/plotCorrHist2D.R b/R/plotCorrHist2D.R index e1853a9..343de2f 100644 --- a/R/plotCorrHist2D.R +++ b/R/plotCorrHist2D.R @@ -78,8 +78,8 @@ plotCorrHist2D <- function(x, y, title = NULL, xlab = "x", ylab = "y", bins = 40 limMin <- min(min(data[, valueX]), min(data[, valueY])) limMax <- max(max(data[, valueX]), max(data[, valueY])) - limx1 <- if(is.null (limx)) c(limMin - limMax / 7, limMax + limMax / 7) else limx - limy1 <- if (is.null(limy)) c(limMin - limMax / 7, limMax + limMax / 7) else limy + limx1 <- if(is.null (limx)) c(limMin , limMax + limMax / 7) else limx + limy1 <- if (is.null(limy)) c(limMin , limMax + limMax / 7) else limy labelX <- limx1[2] - limx1[2] / 8 labelY <- limMin + limMax / 4 diff --git a/README.md b/README.md index 5a2c0f3..ba625ee 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Landuse Plot Library -R package **luplot**, version **3.58.2** +R package **luplot**, version **3.58.3** [![CRAN status](https://www.r-pkg.org/badges/version/luplot)](https://cran.r-project.org/package=luplot) [![R build status](https://github.com/pik-piam/luplot/workflows/check/badge.svg)](https://github.com/pik-piam/luplot/actions) [![codecov](https://codecov.io/gh/pik-piam/luplot/branch/master/graph/badge.svg)](https://app.codecov.io/gh/pik-piam/luplot) [![r-universe](https://pik-piam.r-universe.dev/badges/luplot)](https://pik-piam.r-universe.dev/builds) @@ -39,7 +39,7 @@ In case of questions / problems please contact Benjamin Bodirsky . +Bodirsky B, Dietrich J, Krause M, Stevanovic M, Humpenoeder F, Weindl I, Baumstark L, Klein D, Rolinski S, Wang X (2024). _luplot: Landuse Plot Library_. R package version 3.58.3, . A BibTeX entry for LaTeX users is @@ -48,7 +48,7 @@ A BibTeX entry for LaTeX users is title = {luplot: Landuse Plot Library}, author = {Benjamin Leon Bodirsky and Jan Philipp Dietrich and Michael Krause and Miodrag Stevanovic and Florian Humpenoeder and Isabelle Weindl and Lavinia Baumstark and David Klein and Susanne Rolinski and Xiaoxi Wang}, year = {2024}, - note = {R package version 3.58.2}, + note = {R package version 3.58.3}, url = {https://github.com/pik-piam/luplot}, } ```