scplot is an add on package for scan which provides a convenient set of functions to create single-case graphics. scplot is based on ggplot2.
From CRAN: install.packages("scplot")
For the developmental version from GitHub you need the pak package:install.packages("pak")
Then install scplot from GitHub with:pak::pak("jazznbass/scan")
After installation, load the package with:library(scplot)
You also need to have the scan package installed and loaded:install.packages("scan")library(scan)
If you get errors, look if a specific package is missing/ not found and try to install the missing package with install.packages("[name-of-the-missing-package]").