3
我绘制与barplot()
的曲线图,并使用beside=TRUE
参数的任何企图似乎要返回的Error in -0.01 * height : non-numeric argument to binary operator
R错误= true参数
以下的误差是图中的代码:
combi <- as.matrix(combine)
barplot(combi, main="Top 5 hospitals in California",
ylab="Mortality/Admission Rates", col = heat.colors(5), las=1)
图表的输出是条形码堆叠在一起而不是彼此相邻。
奇怪,这个错误应该只有当'COMBI发生'不是矩阵,qv这里:http://stackoverflow.com/questions/14909665/barplot-not-working –
@TimBiegeleisen我试图改变组合使用t()但它不工作,只要我添加旁边= TRUE参数 –
你能向我们展示你的数据集'combine'? –