用S+的histogram命令画出的分布图copy到word文档中太占版面,原因是 边空太大,不知道如何调整。我用par(mai=c())和par(mar=c())都试过,不行。另外,我想画四个分布图,用Trellis将四个图画在一起,可是不知道怎么实现。我自己编的命令如下:
histogram(~beta1.123.spotfuture, data=beta1.123.frame.spotfuture,
xlab="β",ylab="%",aspect=1, nint=1000,xlim=c(0,1))
histogram(~beta1.124.spotfuture, data=beta1.124.frame.spotfuture,
xlab="β",ylab="%",aspect=1, nint=1000,xlim=c(0,1))
histogram(~beta1.134.spotfuture, data=beta1.134.frame.spotfuture,
xlab="β",ylab="%",aspect=1, nint=1000,xlim=c(0,1))
histogram(~beta1.234.spotfuture, data=beta1.234.frame.spotfuture,
xlab="β",ylab="%",aspect=1, nint=1000,xlim=c(0,1))
其中beta1.123.spotfuture等是numeric数据,beta1.123.frame.spotfuture等是data.frame数据,均为1000×1
另外,我也试过作图工具栏里面的crop graph命令试图剪裁,但是没有反应。
请教各位高手,比较急,谢谢了!