VizTest is a package that identifies optimal confidence intervals for visual testing. This follows the suggestions in the following paper:
You can install the current stable version from CRAN and the development version of VizTest from GitHub with:
# install.packages("pak")
pak::pak("davidaarmstrong/VizTest")