====== Histogram ======
GroIMP can create a histogram over a column of a dataset, to use this the histogram bins have to be defined.
It is possible to have histograms for multiple columns in the same plot in different colors.
====== ======
To define the histogramBins the function setHistogramBins is used with the following arguments:
- The column which is suppose to be used (identified numerically starting with 0)
- The minimum value
- The maximum value
- The number of buckets.
For example:
dataset("your_dataset").setHistogramBins(0,0.5,1.0,8)
To create a histogram in rgg the chart command with the additional parameter HISTOGRAM is used:
chart(dataset("your_dataset"),HISTOGRAM);
{{ :01_user_documentation:03_interacting_with_groimp:07_visualization:04_plotting:histogram.png?400 |}}