[英]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.