Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug, 'legend' lost in 'visualize_isoforms.R' #15

Closed
gnilihzeux opened this issue Apr 17, 2024 · 2 comments
Closed

bug, 'legend' lost in 'visualize_isoforms.R' #15

gnilihzeux opened this issue Apr 17, 2024 · 2 comments

Comments

@gnilihzeux
Copy link

Hi, there is a bug at line 72 in 'visualize_isoforms.R'

old, which could not raise a legend

legend_plot <- cowplot::get_legend(prop_with_legend_plot)

Uploading 1712913470693.png…

I try in other way

legend_plot  <- ggplotGrob(prop_with_legend_plot)$grobs[[which(sapply(ggplotGrob(prop_with_legend_plot)$grobs, 
                                                                          function(x) x$name == "guide-box"))]]

Uploading 1712913417844.png…

@EricKutschera
Copy link
Contributor

From wilkelab/cowplot#200 it looks like a known issue that cowplot::get_legend() doesn't work with ggplot2 3.5.0

It also looks like an update to cowplot is being worked on: wilkelab/cowplot#202

I checked that using ggplot2 3.4.4 still works. I'll give some time for a cowplot update before making any changes to the code

@gnilihzeux
Copy link
Author

Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants