The mosaic package provides a simplified and systematic introduction to the core functionality related to descriptive statistics, visualization, modeling, and simulation-based inference required in first and second courses in statistics. This introduction to the package describes some of the guiding principles behind the design of the package and provides illustrative examples of several of the most important functions it implements. These can be combined to help students "think with data" using R in their early course work, starting with simple, yet powerful, declarative commands.
Pruim, Randall; Kaplan, Daniel T.; and Horton, Nicholas J., "The mosaic package: Helping students to 'think with data' using R" (2017). University Faculty Publications. 252.