Skip to contents

The following code chunk shows how to plot the distribution of ranking profiles.

library(combinat)
#> 
#> Attaching package: 'combinat'
#> The following object is masked from 'package:utils':
#> 
#>     combn
library(rankingQ)
#> Registered S3 method overwritten by 'GGally':
#>   method from   
#>   +.gg   ggplot2

tab <- lapply(permn(seq(3)), paste0, collapse = "") |>
  sample(30, replace = TRUE) |>
  unlist() |>
  table() |>
  table_to_tibble()
plot_dist_ranking(tab, ylim = 0.5)