Open strohne opened 6 months ago
And make sure the value order in tabs and plots is the same:
library(tidyverse)
ds <- tribble(
~f1, ~f2, ~f10,
1, 1, 1,
1, 2, 1,
2, 2, 2
)
plot_counts(ds, c(f1:f10))
tab_counts_items(ds, c(f1:f10))
In frequency plots, the value order may be changed (-1, +1). Keep the residual categories with negative values always as last category.