-
Notifications
You must be signed in to change notification settings - Fork 8
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
Use of aes(color=category)
in geom_density
or geom_hist
#102
Comments
Yep! Wolfe Island - just finished my Ph.D at Queen's last year. Thanks for reporting this - it's another issue downstream of the grouping issue (like #93) - looks like @adknudson has an idea how to fix it over there so we should have this working soon! |
Interesting - it seems to be plotting all three curves independently, but all in blue. I'll look into this change - it could be due to the new version of Makie? But I'm not sure yet |
This is "re-fixed" in 0.8.0 (to be released soon) |
Describe how it works in R's
ggplot2
A clear and concise description of what you want to happen.
If
x
is a numeric variable andg
is a factor in data.framedf
in R thenggplot(df, aes(x = x, color=g) + geom_density()
produces a plot with multiple kernel density estimates. See thediamonds
example in https://ggplot2.tidyverse.org/reference/geom_density.htmlIn
TidierPlots.jl
it seems that thecolor/colour
aesthetic is interpreted as a scalar color by geom_density.Is there a way to create a plot with multiple kernel density curves in
TidierPlots.jl
?BTW, @rdboyes It is great to see someone from the Kingston area (are you on Wolfe Island?) in Julia development. I did both my undergraduate degree and my Ph.D. at Queens.
The text was updated successfully, but these errors were encountered: