Skip to content

Commit

Permalink
Update plot_scopus_comparison.R
Browse files Browse the repository at this point in the history
```
                # tidyverse/ggplot2#5728 (comment)
                show.legend = c(colour = TRUE)) + 

```
  • Loading branch information
pablobernabeu committed Aug 27, 2024
1 parent c6ae0e0 commit 26de823
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plot_scopus_comparison.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ plot_scopus_comparison =
scale_x_continuous(breaks = scales::breaks_pretty(10), expand = expansion(0.01)) +
scale_y_continuous(expand = expansion(0.02), n.breaks = 8,
labels = scales::label_percent(accuracy = 1, scale = 1)) +
geom_line(linewidth = 2, alpha = 0.12) +
geom_line(linewidth = 2, alpha = 0.12,
# https://github.com/tidyverse/ggplot2/issues/5728#issuecomment-1970036164
show.legend = c(colour = TRUE)) +
guides(colour = guide_legend(override.aes = list(alpha = 1))) +
geom_textpath(aes(label = get(label_variable),
color = get(colour_variable)),
Expand Down

0 comments on commit 26de823

Please sign in to comment.