I've recently started using R and I don't think I'm understanding the hist()
function well. I'm currently working with a numeric vector of length 296, and I'd like to divide it up into 10 equal intervals, and produce a frequency histogram to see which values fall into each interval. I thought hist(dataset, breaks = 10)
would do the job, but it's dividing it into 12 intervals instead. I obviously misunderstood what breaks
does.
If I want to divide up my data into 10 intervals in my histogram, how should I go about doing that? Thank you.