prefviz: Visualizes Preferential Data in One and More Contests

A visualization toolkit for preferential data, such as ranked-choice election results, tournament outcomes, and survey responses. The package provides methods to visualise the preference distribution of one contest with bar charts and pairwise comparisons of two contestants, as well as methods to visualise multiple contests through 2D and high-dimensional simplex plots both statically and interactively. HD simplex displays are implemented via projection methods using the 'tourr' and 'detourr' packages, enabling dynamic exploration of high-dimensional preference structure. For more details on HD simplex projection, see Wickham et al. (2011) <doi:10.21105/joss.03419>.

Version: 0.1.2
Depends: R (≥ 4.1.0)
Imports: dplyr, lifecycle, prefio, tibble, tidyr, rlang, ggplot2, scales, tidyselect, geozoo
Suggests: knitr, rmarkdown, tourr, kableExtra, ggthemes, testthat (≥ 3.0.0)
Published: 2026-05-01
DOI: 10.32614/CRAN.package.prefviz
Author: Linh Ngo [aut, cre], Dianne Cook ORCID iD [aut], Damjan Vukcevic ORCID iD [aut]
Maintainer: Linh Ngo <linhngo66.work at gmail.com>
BugReports: https://github.com/numbats/prefviz/issues
License: GPL (≥ 3)
URL: https://numbats.github.io/prefviz/
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: prefviz results

Documentation:

Reference manual: prefviz.html , prefviz.pdf
Vignettes: Adding ordered path to your ternary plot (source, R code)
Using 'ternable' object to draw ternary plots (source, R code)
Transforming voting data to ternable-friendly format (source, R code)

Downloads:

Package source: prefviz_0.1.2.tar.gz
Windows binaries: r-devel: prefviz_0.1.1.zip, r-release: prefviz_0.1.1.zip, r-oldrel: prefviz_0.1.1.zip
macOS binaries: r-release (arm64): prefviz_0.1.2.tgz, r-oldrel (arm64): prefviz_0.1.2.tgz, r-release (x86_64): prefviz_0.1.1.tgz, r-oldrel (x86_64): prefviz_0.1.2.tgz
Old sources: prefviz archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=prefviz to link to this page.