statBin

Edit pageLast modified: 12 March 2024

The statBin function creates a new plotting context with new dataset which contains the "bin" statistic calculated on sample of a single numeric variable x. Firstly, it divides the range of values into bins (sequential, non-overlapping sections), and then it counts the number of observations in each bin. It's weighted, it means the weighted count for each bin is calculated (each element within a bin counted along with its weight). A bin-constructing methods can be configured.