I'm trying to plot a histogram in Julia. For illustrative purposes, in the example below I plot age, which ranges from 0 to 100.
age = 100*rand(1000,1)
histogram(age, xlabel = "Age", bins = range(0,100, step = 5),
xticks = 0:5:100, leg = false)
Ideally I'd want to:
Have the first bin include all values smaller than 20, and the last all greater than 60. The other bins should be just as above,
step = 5.Be able to label the bins, in particular to have
< 20and> 60.
Is there any way to do this?
