A package that includes functions that I find useful for teaching statistics as well as actually practicing the art. They typically are not “new” methods but rather wrappers around either base R or other packages and concepts I’m trying to master. Currently contains:
Plot2WayANOVAwhich as the name implies conducts a 2 way ANOVA and plots the results usingggplot2PlotXTabswhich as the name implies plots cross tabulated variables usingggplot2newggslopegraphwhich creates a Tufte“esque” slopegraph usingggplot2Modewhich finds the modal value(s) in a vector of dataSeeDistwhich wraps around ggplot2 to provide visualizations of univariate data.OurConfis a simulation function that helps you learn about confidence intervals
# Install from CRAN
install.packages("CGPfunctions")
# Or the development version from GitHub
# install.packages("devtools")
devtools::install_github("ibecav/CGPfunctions")Online documentation and vignettes are located here.
Example Plot2WayANOVA plot
Example PlotXTabs plot
Example newggslopegraph plot
Many thanks to Danielle Navarro and the book Learning Statistics with R.
“He who gives up safety for speed deserves neither.” (via)
If you like CGPfunctions, please consider leaving feedback here.
Contributions in the form of feedback, comments, code, and bug reports are most welcome. How to contribute:
- Issues, bug reports, and wish lists: File a GitHub issue.
- Contact the maintainer ibecav at gmail.com by email.


