JuliaStats / KernelDensity.jl

Kernel density estimators for Julia
Other
175 stars 40 forks source link

Add plot recipes? #35

Closed tbreloff closed 7 years ago

tbreloff commented 7 years ago

Looking at https://github.com/JuliaStats/KernelDensity.jl/commit/2de1e7bae939d923cbfd4fb000921aca42d1a6fb it seems like it would be pretty straightforward to add recipe(s) so that all these plots are supported easily. Would you rather add a dependency on RecipesBase here and keep the recipes close, or add to StatPlots? We can choose either since StatPlots depends on this package.

simonbyrne commented 7 years ago

I don't really mind: I guess since it's already a dependency, you might as well move them to StatPlots.

tbreloff commented 7 years ago

Ok done. https://github.com/JuliaPlots/StatPlots.jl/commit/897ee05dbec5a66207e168e6065390c7078205fe

tbreloff commented 7 years ago

If you want to give a short example I can add it to the StatPlots readme

tbreloff commented 7 years ago

Something like:

using StatPlots
k = # make a KDE object
surface(k)