Learn R Programming

ConsRank (version 3.0)

polyplotnew: Plot rankings on a permutation polytope of 3 or 4 objects

Description

Plot rankings on a permutation polytope of 3 or 4 objects

Usage

polyplotnew(X = NULL, L = NULL, Wk = NULL, nobj = 3, engine = "auto")

Value

For nobj=3: invisible NULL (creates base graphics plot) For nobj=4: invisible NULL for rgl, plotly object for plotly engine

Arguments

X

Sample of rankings (matrix). Usually returned by tabulaterows()

L

Labels of the objects (character vector)

Wk

Frequency weights for each ranking (numeric vector)

nobj

Number of objects: 3 or 4 (integer)

engine

Rendering engine for 4-object plots: "auto", "rgl", or "plotly" (character)

Author

Antonio D'Ambrosio, Sonia Amodio

Details

For 3 objects: uses base R graphics (always available) For 4 objects: - engine="auto": tries rgl first, falls back to plotly if unavailable - engine="rgl": requires 'rgl' package (may need XQuartz on macOS) - engine="plotly": requires 'plotly' package (works on all platforms)

References

Thompson, G. L. (1993). Generalized permutation polytopes and exploratory graphical methods for ranked data. The Annals of Statistics, 1401-1430.

Heiser, W. J., and D'Ambrosio, A. (2013). Clustering and prediction of rankings within a Kemeny distance framework. In Algorithms from and for Nature and Life (pp. 19-31). Springer International Publishing.