WB-ILIAS | Weiterbildung und offene Bildungsressourcen

R

Histogram

Often, you will only decide which variables to compare to which on the basis of seeing that there is an interesting trend. In order to discover trends, it is usually helpful to visualize the data in a fitting form, depending on its type.

For numeric data such as scores, the function hist() will give you an overview of the variable's distribution. It will create a so called histogram, visualizing how frequent the individual numeric values are. In the picture below, you can see that most frequently, the value of years lies between 0.5 and 1. Additionally, you should see that there were no observation between 1 and 1.5 years, which might be worth further exploration.



Bisher wurde noch kein Kommentar abgegeben.