-
Notifications
You must be signed in to change notification settings - Fork 251
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
Infer more defaults for univariate distributions #1489
Comments
would be easiest for us to help debug if you put your code into a pull request so we could see it |
Some features of Gadfly which support Distributions include Stat.qq and Note that Gadfly also some special signatures for plots (and layers), so this is possible:
|
I couldn’t figure this one out in a few hours and have some other priorities first. I hope to come up with a pull request in a few weeks. Thanks for the comments 🙂 |
I would like to quickly visualise univariate distributions. However, currently it requires quite a lot of code to do so. I have found two possible roads to plot this distribution.
One way is via
Stat.func
which is quite nice; it also correctly handles multiple distributions when passing multiple values to
xmin
andxmax
.Another way could be via
Stat.density
. This would seem the most obvious candidate for me, but it appears to calculate the density of the density.Attempt to create a pull request
I have tried to create a pull request for this feature. Unfortunately, I am now a little bit stuck on the solution. I have tried to catch the "poorly" defined distributions after
in
src/Gadfly.jl
and then quickly ensure thatStat.apply_statistic(statistics, scales, coord, plot_aes)
jumps toapply_statistic(stat::FunctionStatistic, ...)
withmy plan was to prepare the plot for the
apply_statistic
method in this addition, but I getI have checked all the types and they match even though Julia report that they don't.
The text was updated successfully, but these errors were encountered: