Is there a way to have the labels of data auto-populated to my barplot?

Am working on plotting a barplot of the no.of matches won by teams in IPL. How do I add names of the teams in the plot?

''' barplot(pointstable$Won, main= "Winning Distribution",xlab="Name of the team", ylab="No. of matches won")'''

I recommend ggplot2 package which is part of tidyverse package.
You could use a geom_bar and add geom_label to it

1 Like

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