问题描述
嗨,我看到了一篇关于使用 ncol 使用 base R 在条形图中创建水平图例的帖子,但是每当我尝试以下代码时,我都会收到以下错误
Warning messages:
1: In plot.window(xlim,ylim,log = log,...) :
"ncol" is not a graphical parameter
2: In axis(if (horiz) 2 else 1,at = at.l,labels = names.arg,lty = axis.lty,:
"ncol" is not a graphical parameter
3: In title(main = main,sub = sub,xlab = xlab,ylab = ylab,...) :
"ncol" is not a graphical parameter
4: In axis(if (horiz) 1 else 2,cex.axis = cex.axis,...) :
"ncol" is not a graphical parameter
barplot(m,col=c("0","8","1"),border="black",space=0.04,font.axis=2,ylim=c(0,12),ylab="Number of species",legend=TRUE,ncol=3)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)