[R] How to adjust plot size?

Guy Green guygreen at netvigator.com
Fri Jun 11 12:36:55 CEST 2010


I'm not sure what part of the process is giving you trouble, but if you play
around with the "mar" part of the code, you get a lot of flexibility over
the margins.  Also, if you pre-set the dimensions of the window the plot is
created in, you get even more control.  E.g.

x11(width=9, height=6, pointsize=12)
par(mfrow=c(1,2), mar=c(3,2,2,2))
plot(1:10)
plot(1:10)
savePlot("c:\\test.wmf",type="wmf")


Guy


liang wrote:
> 
> Greetings!
> 
> When inserting the following R curves into a word file, there is a big
> margin in the graph. How do I remove the marign? I tried FIN, but it seems
> not compatiable with MFROW.
> 
> par(mfrow=c(1,2), mar=c(10,1,10,2))
> plot(1:10)
> plot(1:10)
> 
> Thanks for your help,
> Liang
> 
> 

-- 
View this message in context: http://r.789695.n4.nabble.com/How-to-adjust-plot-size-tp2250904p2251588.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list