Visualizes Preference Data via Ternary Plots in Two and Higher Dimensions


[Up] [Top]

Documentation for package ‘prefviz’ version 0.1.1

Help Pages

add_ternary_base Draw the 2D ternary simplex
add_vertex_labels Add vertex labels to ternary plot
aecdop Distribution of preferences by candidate by division in the Australian Federal Election (2022 and 2025)
aecdop22_transformed Distribution of preferences in wide form for selected parties (2022 and 2025)
aecdop25_transformed Distribution of preferences in wide form for selected parties (2022 and 2025)
aecdop_2022 Distribution of preferences by candidate by division in the Australian Federal Election (2022 and 2025)
aecdop_2025 Distribution of preferences by candidate by division in the Australian Federal Election (2022 and 2025)
aecdop_transformed Distribution of preferences in wide form for selected parties (2022 and 2025)
as_ternable Create a ternable object
dop_irv Get full distribution of preferences in each instant runoff voting round as percentage
dop_transform Transform AEC distribution of preferences from long to wide format
elb_centroid Centroids of electoral divisions in the 2025 Australian Federal Election
elb_map Electoral boundaries map for the 2025 Australian Federal Election
geom_ternary_region Create polygonal regions in a ternary plot based on a reference point
get_tern_data Getter functions to extract components from ternable object for ternary plots
get_tern_edges Getter functions to extract components from ternable object for ternary plots
get_tern_labels Getter functions to extract components from ternable object for ternary plots
helmert_transform Transform compositional data using Helmert matrix
StatOrderedPath Reorder observations for a path geom
StatTernaryRegion Create polygonal regions in a ternary plot based on a reference point
stat_ordered_path Reorder observations for a path geom
stat_ternary_region Create polygonal regions in a ternary plot based on a reference point
ternary_getters Getter functions to extract components from ternable object for ternary plots