Skip to content

Commit

Permalink
fixed ggplot2 guides deprecation warning
Browse files Browse the repository at this point in the history
Fixes <scale>` argument of `guides()` cannot be `FALSE`. Use "none" instead as of ggplot2 3.3.4 omarwagih#28
Fixes Deprecated feature from ggplot2 3.3.4 used in ggseqlogo omarwagih#32
  • Loading branch information
aviezerl committed Sep 6, 2023
1 parent 4adc8f2 commit 21f75b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ggseqlogo.r
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ geom_logo <- function(data = NULL, method='bits', seq_type='auto', namespace=NUL

# If letters and group are the same, don't draw legend
guides_opts = NULL
if(identical(cs$letter, cs$group)) guides_opts = guides(fill=F)
if(identical(cs$letter, cs$group)) guides_opts = guides(fill = "none")

y_lim = NULL
extra_opts = NULL
Expand Down

0 comments on commit 21f75b2

Please sign in to comment.