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

Improve <epidist> plotting method #235

Closed
wants to merge 9 commits into from
Closed

Improve <epidist> plotting method #235

wants to merge 9 commits into from

Conversation

joshwlambert
Copy link
Member

This PR enhances the plotting method for <epidist> and <vb_epidist> objects by using {ggplot2}, {ggdist} and {gridExtras} R packages. The previous plotting methods used base R functionality. The new methods give a nicer default plot and allow for plots to be customised using the grammar of graphics layering offered by {ggplot2} and other gg derivative packages.

This PR also adds a custom theme to the package to consistently produce plots with the same aesthetic and style.

The new functions are in a R/plot.R file and the previous tests for plotting methods have been moved to testthat/test-plot.R.

The README is updated to use the new plots.

@joshwlambert
Copy link
Member Author

Closing this PR in favour of #315. I will leave the plot_method branch open for a few months, if in that time no other development happens to the <epidist> plotting method then it can be deleted.

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

Successfully merging this pull request may close these issues.

None yet

2 participants