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

How do I add the gradient color with variables other than x or y? #62

Open
Byronxy opened this issue Sep 28, 2020 · 1 comment
Open

Comments

@Byronxy
Copy link

Byronxy commented Sep 28, 2020

Hi I see example like this

ggplot(lincoln_weather, aes(x = `Mean Temperature [F]`, y = Month, fill = stat(x))) +
  geom_density_ridges_gradient(scale = 3, rel_min_height = 0.01) +
  scale_fill_viridis_c(name = "Temp. [F]", option = "C") +
  labs(title = 'Temperatures in Lincoln NE in 2016')

But I wish to use other variables (continous) to replace the x here, while it does not work

@sohcahtoaster
Copy link

I'm having the same issue- let us know if you found an answer!

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

No branches or pull requests

2 participants