eliocamp / ggnewscale

Multiple Fill, Color and Other Scales in `ggplot2`
https://eliocamp.github.io/ggnewscale/
GNU General Public License v3.0
406 stars 18 forks source link

guide_legend(ncol=2) #34

Closed yesdavid closed 3 years ago

yesdavid commented 3 years ago

Hi @eliocamp, thanks for your package!

I followed this post on SO (https://stackoverflow.com/a/66808609/16642045) and now I'm trying to align the multiple custom legends in two (or more) vertical columns. I tried to add guides(scale_shape_manual=guide_legend(ncol=2)) to the plot but can't get it to work.

Do you have an idea how to solve this issue? Thanks!

Best, David

eliocamp commented 3 years ago

I'm closing this since your stackoverflow question is now answered :tada: . Besides, this is a general ggplot2 thing, not something ggnewscale does.

jan-glx commented 1 year ago

I believe the issue raised here is not answeredin in the SO post but about how to used guides with ggnewscale (but just using the SO post as motivation/MWE). However this issue should probably stay closed in favor of #48 or #50.

EDIT: just realized that all these will be probably be closed by #57 (use remotes::install_github("teunbrand/ggnewscale", ref = "guide_fix") until merged)

eliocamp commented 1 year ago

57 is now merged.