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
Reduce code duplication #177
Conversation
This also implements fixed shade transparency for all types of plots. Earlier it was fixed for "theoretical" and varied for "simulation" and "both".
Also this renames "Chi-square" into "Chi-Square" in warnings about right-tailed tests.
Oh, and also in warnings about "Chi-Square" not being good for |
Travis error seems to not be code fault (locally and on other R versions it passes all checks). Error comes from pandoc: |
Codecov Report
@@ Coverage Diff @@
## develop #177 +/- ##
=======================================
Coverage 100% 100%
=======================================
Files 12 12
Lines 1290 1135 -155
=======================================
- Hits 1290 1135 -155
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff! Thanks much!
@echasnovski I'm stepping away from the computer now so I'm not able to merge this. I just merged in a way to add |
Merge branch 'develop' into dry-code # Conflicts: # R/visualize.R
This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
This is a PR for #173. It contains updates suggested in issue with major refactor of
visualize()
. It also has the following user-visible changes:method = "theoretical"
, but varies formethod = "simulation"
ormethod = "both"
. This is because of actually different implementations of shading. I didn't consult if this is an intentional behaviour, but it seems unlikely to me. To see an effect, run the following code:visualize()
works for "One sample t" theoretical distribution type formethod = "both"
. It didn't work because it was missing in thisif
clause. After wrapping these checks into a function, this became apparent. To see that it wasn't working, run the following code: