gratia icon indicating copy to clipboard operation
gratia copied to clipboard

Reduce duplication of code in the various `plot_smooth()` methods

Open gavinsimpson opened this issue 6 months ago • 0 comments

Intentionally, I have duplicated a lot of code in the various plot_smooth() internal methods, waiting until things had settled down a bit with the package before attempting any sort of code de-duplication or clean up.

With only the bs = "mrf" basis currently not supported, time is ripe to reduce the duplication across the plot_smooth() methods, such that I can use a single prepare_smooth_plot() across all the methods.

Investigate the feasibility of doing this and implement.

gavinsimpson avatar Aug 10 '24 10:08 gavinsimpson