statCount

Edit pageLast modified: 25 March 2024

The statCount function creates a new plotting context with new dataset which contains the "count" statistic calculated on sample of a single categorical variable x. It counts the number of observations in each category. It's weighted, it means the weighted count for each category is calculated (each element within a category is counted along with its weight).