Skip to content

Commit

Permalink
Stop ggplot2 Guide Warning (resolves #15)
Browse files Browse the repository at this point in the history
* Update guide parameter since ggplot2 3.3.4
* Update News
  • Loading branch information
hhmacedo authored Aug 24, 2021
1 parent 8934675 commit e52c531
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions R/tricolore.R
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit e52c531

Please sign in to comment.