From e52c531cc5f3bfd1d9e59fd0fc8bce964633e0f0 Mon Sep 17 00:00:00 2001 From: Hugo Macedo <22848633+hhmacedo@users.noreply.github.com> Date: Tue, 24 Aug 2021 05:03:31 -0300 Subject: [PATCH] Stop ggplot2 Guide Warning (resolves #15) * Update guide parameter since ggplot2 3.3.4 * Update News --- NEWS.md | 1 + R/tricolore.R | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index 456a063..3c4c0a2 100755 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,7 @@ # tricolore 1.2.3 * add startup message and citation information +* establish compatibility with ggplot2 3.3.4/3.3.5 (@hhmacedo, #13) # tricolore 1.2.2 diff --git a/R/tricolore.R b/R/tricolore.R index 5f85d98..0fcb546 100755 --- a/R/tricolore.R +++ b/R/tricolore.R @@ -722,8 +722,8 @@ BasicKey <- function(legend_surface, limits, brklab, show_center, center, lwd) { geom_polygon(aes_string(group = 'id', fill = 'rgb', color = 'rgb'), lwd = lwd) + geom_mask() + # rgb color input - scale_color_identity(guide = FALSE) + - scale_fill_identity(guide = FALSE) + + scale_color_identity(guide = "none") + + scale_fill_identity(guide = "none") + # theme theme_classic() + theme(tern.axis.title.L = element_text(hjust = 0.2, vjust = 1, angle = -60),