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

Make most plotting functions methods #90

Open
jrnold opened this issue May 23, 2017 · 2 comments
Open

Make most plotting functions methods #90

jrnold opened this issue May 23, 2017 · 2 comments
Labels

Comments

@jrnold
Copy link

jrnold commented May 23, 2017

I think it would help usability to make the various functions methods. I love that the functions are frontend agnostic and take arrays or data frames, but it would make it much more usable if the they were methods, so it would work directly with stanfit and stanreg objects.

I haven't looked too much at the code, but it looks like the internal function prepare_mcmc_array is doing most of what a method dispatcher would do. Maybe just exposing that function and making it a method would be sufficient.

@jrnold jrnold added the feature label May 23, 2017
@jgabry
Copy link
Member

jgabry commented May 24, 2017 via email

@jrnold
Copy link
Author

jrnold commented May 26, 2017

Yes. If prepare_mcmc_array was made a generic function with methods for stanfit and stanreg objects, then it might be possible to avoid writing separate methods for each (or many) of the plotting functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants