BarChart automatic group range from dataframe


I like how BarChart() automatically makes graphs and gives table with numeric info into console and I'm using it as such:

BarChart(age, data=numbers)

which gives me this:

Can I change the age paramater on the BarChart line so it would give me groups of ages e.g.:

BarChart( cut(age,breaks=c(1,39,49,59,69,79,89)), data=numbers)


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.