chaojixijun 不好意思,我觉得贴个图上来更能表达我的意思,所以就没有贴代码,现举个简单的数据如下,看了barplot的说明文件,好像也没有关于我这个问题的,请多指教! x1 <- c(1.2,1.4,0.8,0.3,1.1,1.22)<br /> barplot(x1,width=1,space=0.1,col=1,offset=-0.4) </p>
wind2599 回复 第5楼 的 chaojixijun:你自己分别换下数字不就知道了吗??par : 'mgp' The margin line (in 'mex' units) for the axis title, axis labels and axis line. Note that 'mgp[1]' affects 'title' whereas 'mgp[2:3]' affect 'axis'. The default is 'c(3, 1, 0)'.
enthumelon 回复 第3楼 的 chaojixijun: <br /> x1 <- c(1.2,1.4,0.8,0.3,1.1,1.22)<br /> barplot(x1,width=1,space=0.1,col=1,ylim=c(-2,1.5))<br /> 改ylim就好了吧... </p>