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

Text formatting #16

Merged
merged 8 commits into from
Sep 7, 2024
Merged

Text formatting #16

merged 8 commits into from
Sep 7, 2024

Conversation

teunbrand
Copy link
Owner

Allows one to encode text formatting options inside many key_*() functions.

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

ggplot(mpg, aes(displ, hwy)) +
  geom_point() +
  guides(
    x = guide_axis_custom(
      key_manual(
        2:7, 
        colour = rep_len(c("orange", "orchid", "limegreen"), 6),
        size   = rep_len(c(10, 14), 6),
        family = rep_len(c("Times New Roman", "Arial", "Montserrat", "mono"), 6)
      )
    )
  )

Created on 2024-09-07 with reprex v2.1.1

@teunbrand teunbrand merged commit a685b86 into main Sep 7, 2024
7 checks passed
@teunbrand teunbrand deleted the text_formatting branch September 7, 2024 13:06
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.

1 participant