什么R-package可以产生这个情节?

时间:2022-12-07 00:26:00

I want to produce the graphics illustrated in "B" and "C". Do you know what the name of the plot is and what R-package I can use to produce it from my own data?

我想生成“B”和“C”中所示的图形。你知道这个剧情的名称是什么吗?我可以用什么R-package从我自己的数据中产生它?

什么R-package可以产生这个情节?

1 个解决方案

#1


1  

adding this again as an answer.
this is simple to accomplish with regular barplot. see example as shown here

再加上这个作为答案。使用常规的条形图很容易实现。看这里显示的例子

counts <- table(mtcars$gear)
barplot(counts, main="Car Distribution", horiz=TRUE,
names.arg=c("3 Gears", "4 Gears", "5 Gears"))

#1


1  

adding this again as an answer.
this is simple to accomplish with regular barplot. see example as shown here

再加上这个作为答案。使用常规的条形图很容易实现。看这里显示的例子

counts <- table(mtcars$gear)
barplot(counts, main="Car Distribution", horiz=TRUE,
names.arg=c("3 Gears", "4 Gears", "5 Gears"))