Provides an R function to plot mortality rates in funnel or slice form.
This is an R package under development and is not ready for use.
To use from another RStudio project, install the devtools package, and then load the funnel package like this:
devtools::install_github("gmp26/funnel")
library(funnel)
?funnel4
Create a new RStudio version controlled project from this distribution.
Note that the package is now configured to build documentation and vignettes on Build and Load
. This may require LaTeX and XCode to run - see below. To build without documentation, use Build > More > Conigure Build Tools...
, and revise the roxygen
configuration options.
See Package Development Prerequisites. Generating documentation requires a working C++ compiler and \LaTeX. On MacOSX this amounts to installing XCode and LaTeX so the documentation can be built.
- Revise code
- Rebuild package using Build > Build & Reload in the top right panel
- Commit changes and push back to GitHub
- Test interactively by loading the package into shiny-funnel-app
- Parallel test by running
Build and Load
and looking at the vignette outputs. - Package check runs a minimal sanity test.
We could do with adding some local tests in this package so we don't need to push changes to test.
Unsolicited contributions are welcome as pull requests. Please first raise an issue here in case the change is already planned.
- Rename
funnel4
tofunnel
? - Add local tests
- Finish basic plot function, and stabilise parameters
- Improve inline docs
- Add vignettes