[英]Show box plot of one column against values from another column as x axis
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我正在寻找在 R 中创建一个框 plot 如下
I am able to create a box plot as follows我能够创建一个盒子 plot 如下
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?如何在 R 中执行此操作?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.