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

🐛 Fix theme_guide(key.width, key.height, key.size) #53

Merged
merged 5 commits into from
Feb 15, 2025
Merged

Conversation

teunbrand
Copy link
Owner

This PR aims to fix #41.

devtools::load_all("~/packages/legendry/")
#> ℹ Loading legendry
#> Loading required package: ggplot2

thm <- theme_guide(key.width = unit(2, "cm"), 
                   key.height = unit(1, "cm"), 
                   key.spacing.y = unit(1, "cm"))

ggplot(mpg, aes(displ, hwy, colour = drv)) +
  geom_point() +
  guides(colour = guide_legend(theme = thm))

Created on 2025-02-15 with reprex v2.1.1

@teunbrand teunbrand merged commit 04a1bc7 into main Feb 15, 2025
7 checks passed
@teunbrand teunbrand deleted the key_size branch February 15, 2025 17:00
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

Successfully merging this pull request may close these issues.

theme_guide(key.width, key.height) do not work as expected
1 participant