strohne / volker

Volker Package
https://strohne.github.io/volker/
Other
2 stars 0 forks source link

Always put -2 / Weiß nicht to the right #28

Open strohne opened 6 months ago

strohne commented 6 months ago

In frequency plots, the value order may be changed (-1, +1). Keep the residual categories with negative values always as last category.

strohne commented 4 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))