hist() — Histogram

hist(x, breaks)

Key idea

Definition

how many data points
a suggested number of bins
round up to a whole number

Where you'd use it

Frequently asked questions

How many bins should I use?
Enough to show the shape without noise — try a few. The bin width changes the story.
Histogram or bar chart?
Histogram for continuous numbers (bars touch); bar chart for categories.