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

Can't stack multiple scales #6

Closed
willgearty opened this issue Jan 22, 2019 · 0 comments
Closed

Can't stack multiple scales #6

willgearty opened this issue Jan 22, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@willgearty
Copy link
Owner

This example no longer works since the switch from annotate to geom_rect:

p <- ggplot() +
  geom_point(aes(y = runif(1000, 1, 8), x = runif(1000, 0, 1000))) +
  scale_x_reverse() +
  coord_cartesian(xlim = c(0, 100), ylim = c(0,8), expand = FALSE) +
  theme_classic()
p <- gggeo_scale(p, height = .03, abbrv = FALSE)
p <- gggeo_scale(p, dat = "epochs", gap = .03, height = .1, rot = 90, size = 3)
gggeo_scale(p, dat = "stages", gap = .13, height = .1, rot = 90, size = 3)

I guess I'll need a way to figure out if there's already a fill_geo_scale and changed the name of the next fill aes? Or maybe I really SHOULD switch to ggnewscale, since that will switch to a new fill each time the function is called.

@willgearty willgearty added the bug Something isn't working label Jan 22, 2019
willgearty added a commit that referenced this issue Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant