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

Dispatching StatsPlots.qqplot on GLM.LinearModel #5039

Closed
irregular-rhomboid opened this issue Dec 25, 2024 · 2 comments
Closed

Dispatching StatsPlots.qqplot on GLM.LinearModel #5039

irregular-rhomboid opened this issue Dec 25, 2024 · 2 comments

Comments

@irregular-rhomboid
Copy link

I'm currently implementing R-style plots for GLM (see JuliaStats/GLM.jl#581) and can't figure out how to dispatch the qqplotrecipe from StatsPlots on GLM.LinearModel objects...

I've tried everything I could think of and the only thing that worked was manually defining a method for qqplot, with all the defaults keyword arguments.

How am I supposed to do this properly with recipes?

@BeastyBlacksmith
Copy link
Member

I think your current approach is fine. Typically there is only one type per recipe and then you could chain them by returning the type of the recipe that should come after, but if you want to use the same name, adding a method seems reasonable to me.

@irregular-rhomboid
Copy link
Author

Thanks for the clarification.

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