Plot rankings on a permutation polytope of 3 or 4 objects
polyplotnew(X = NULL, L = NULL, Wk = NULL, nobj = 3, engine = "auto")For nobj=3: invisible NULL (creates base graphics plot) For nobj=4: invisible NULL for rgl, plotly object for plotly engine
Sample of rankings (matrix). Usually returned by tabulaterows()
Labels of the objects (character vector)
Frequency weights for each ranking (numeric vector)
Number of objects: 3 or 4 (integer)
Rendering engine for 4-object plots: "auto", "rgl", or "plotly" (character)
Antonio D'Ambrosio, Sonia Amodio
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)
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.