diff --git a/DESCRIPTION b/DESCRIPTION index 866da1a..2479106 100755 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: metagam Type: Package Title: Meta-Analysis of Generalized Additive Models -Version: 0.4.0.9000 +Version: 0.4.1 Authors@R: c(person("Oystein", "Sorensen", email = "oystein.sorensen@psykologi.uio.no", role = c("aut", "cre"), diff --git a/R/plot_metagam.R b/R/plot_metagam.R index 1c237bd..0f313ee 100755 --- a/R/plot_metagam.R +++ b/R/plot_metagam.R @@ -92,14 +92,14 @@ plot.metagam <- function(x, term = NULL, ci = "none", legend = FALSE, } else if(length(xvars) == 2){ metadat <- metadat[, c(xvars, "estimate", "se")] - plot_bivariate_smooth(metadat, xvars, term) + plot_bivariate_smooth(metadat, xvars) } else { stop("plot.metagam currently only works for univariate or bivariate terms.") } } -plot_bivariate_smooth <- function(metadat, xvars, term){ +plot_bivariate_smooth <- function(metadat, xvars){ names(metadat)[names(metadat) %in% xvars] <- c("xxxaaa", "xxxbbb") @@ -107,7 +107,6 @@ plot_bivariate_smooth <- function(metadat, xvars, term){ z = .data$estimate)) + ggplot2::geom_raster(ggplot2::aes(fill = .data$estimate)) + ggplot2::geom_contour() + - ggplot2::labs(term) + ggplot2::theme_minimal() + ggplot2::scale_fill_distiller(palette = "RdBu", type = "div") + ggplot2::xlab(xvars[[1]]) + diff --git a/cran-comments.md b/cran-comments.md index 87c7d8e..c23e44a 100755 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,9 +1,9 @@ ## Comments -This is a resubmission which contains several improvements and bug fixes. We changed from using citEntry() to bibentry() after previous submission. +This is a resubmission which ensures consistency with the upcoming release of ggplot2. ## Test environments -* local OS X install, R 4.2.2 +* local OS X install, R 4.5.1 * os X, Windows, and Linux on GitHub Actions. * R win-devel diff --git a/news.md b/news.md index 8da3b53..8e7b30d 100755 --- a/news.md +++ b/news.md @@ -1,5 +1,6 @@ # metagam (development versions) +- Small internal fix for consistency with newest ggplot2 version. - Added a workaround which allows not providing the unused variables when the terms argument is used.