I have data that looks as follows
"","Speaker","Total"
"1","David",19
"2","Grimes",29
I am looking to create a box plot in R as follows
I am able to create a box plot as follows
df = read.csv('C:\\abovefile.csv')
barplot(df$Total, main="Total v/s Speaker",xlab="Speaker name")
However, I wasn't able to figure out how to show the name of the speaker at the bottom of each bar. How can I do this in R?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.