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 rescaling issue #68

Merged
merged 3 commits into from
Mar 4, 2025
Merged

🐛 Fix rescaling issue #68

merged 3 commits into from
Mar 4, 2025

Conversation

teunbrand
Copy link
Owner

This PR aims to fix #67.

Axis line now spans the length of the colour bar again

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

ggplot(mpg, aes(displ, hwy, colour = cty)) +
  geom_point() +
  scale_colour_gradient2(
    midpoint = 15,
    guide = guide_colbar(vanilla = FALSE)
  )

Created on 2025-03-04 with reprex v2.1.1

@teunbrand teunbrand merged commit 92c50c9 into main Mar 4, 2025
7 checks passed
@teunbrand teunbrand deleted the fix_67 branch March 4, 2025 19:22
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.

The guidel_colbar ticks parameter is a bit different from colorbar in ggplot
1 participant