Barplot column totals

Any tips on adding totals to bar graph plots when using the basic barplot function.

The code below gives me a basic plot without any problems for my data set but I would like to add totals to each column.
counts <- table(jsonData$type)
barplot(counts, main='All types)',
col=rainbow(20), ylim=c(0,3000), las=2, cex.names=.8 )

Hi, and welcome!

A reproducible example, called a reprex can lead to faster and better answers by avoiding having to guess the contents of jsonData$type, for example.

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