[英]Stacked Barplot issue in R
我有一个数据帧矩阵(请参见pic1),并且正在尝试使用x轴上的列变量创建一个堆积的条形图。 使用以下代码,
barplot(as.matrix(africana06, beside=FALSE, legend=TRUE, ylab=c("Relative Total Damage"), xlab=c("Damage Type"), ylim=c(0,200), col=terrain.colors(4)))
我得到了一个堆积的条形图(请参见pic2),但是它似乎没有接受代码中的任何参数。 有人有什么建议吗? 谢谢!
瑞安
图片 1 图片2
“问题可能很简单,实际上所有参数(旁边= FALSE,图例= TRUE等)都传递给了as.matrix()而不是barplot()。在africana06之后添加一个右括号(并删除一个右括号)最后)。– Stibu”
[英]R stacked barplot with groups
[英]R barplot beside and stacked
[英]Order in stacked barplot R
[英]resorting stacked barplot in r
[英]Grouped and Stacked Barplot in R
[英]Grouped or stacked barplot in R
[英]Stacked barplot R (multiple variables)
[英]Stacked Barplot together with Line in R
[英]stacked barplot in r using ggplot
[英]Stacked Barplot in R-Studio
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.