Holds sample code for "On Likert Scales In R" blog post.
For best viewing check out the PDF here!
This project (now, as of June 2025) uses renv to ensure package versions are reproducible.
To restore the required R packages
- Open the Project in RStudio
- Go to
File → Open Project... - Select the
.Rprojfile in/data
- Go to
- Run the following in the RStudio Console
install.packages("renv")renv::restore()
If you don't want to use renv to get the project environment you can manually install the packages I used to build this tutorial back in '21. The package versions are in the table below; to install them simply do:
install.packages("remotes")
remotes::install_version("likert", version = "1.3.5")
remotes::install_version("HH", version = "3.1.43")| Package | Version |
|---|---|
| knitr | 1.31 |
| foreign | 0.8.72 |
| ggplot2 | 3.3.3 |
| colorspace | 2.0.0 |
| tidyverse | 1.3.0 |
| dplyr | 1.0.4 |
| RColorBrewer | 1.1.2 |
| grid | 3.6.2 |
| HH | 3.1.43 |
| likert | 1.3.5 |