plotnine icon indicating copy to clipboard operation
plotnine copied to clipboard

Autocorrelation function within plotnine

Open tabedzki opened this issue 3 years ago • 0 comments

Hi has2k1. I really love using plotnine as it makes doing analysis on my data really easy. I truly appreciate your work.

Is there a way to do be able to add an autocorrelation function into the package if isn't already? I don't really code in Python but if it is relatively simple to do, I'm willing to open a PR. I just would need a little guidance on the proper format of how to add a new layer/facet (whatever the appropriate term is) for ggplot.

As for implementation, I am aware that the statsmodel package as an autocorrelation function. The plots can be generated by statsmodels.graphics import tsaplots.plot_acf(x, lags = N, alpha= value) so perhaps we can use the underlying function call here to generate the intermediate data before it is plotted via plotnine.

Open to ideas.

tabedzki avatar Feb 10 '22 18:02 tabedzki