Re: [R] graphical parameters: margins

From: Ricardo Rodríguez - Your XEN ICT Team <webmaster_at_xen.net>
Date: Tue 02 Jan 2007 - 22:37:45 GMT

--
Ricardo Rodríguez
Your XEN ICT Team


>>> Gavin Simpson<gavin.simpson@ucl.ac.uk> 2/1/2007 17:44 >>>

>Either of these two gives you the answer

> help.search("graphical parameters")
> RSiteSearch("graphical parameters margin")

>more specifically, read ?par and in particular, the entry for parameter
>'mar' and it's relatives.

>You might also need to add the axis label separately from the figure:

>opar <- par(mar = c(5,7,4,2) +0.1)
>plot(1:10, ann = FALSE) # or plot(1:10, ylab = "")
>mtext("label", side = 2, line = 6)
>par(opar)

>1) opar <- par(mar = c(5,7,4,2) +0.1) creates 7.1 lines on the left of
>the plot and saves defaults
>2) mtext("label", side = 2, line = 6) displays the axis label on line 6
>to push it away from the plot axis. Repeat for other sides...
>3) par(opar) resets to the defaults.

>HTH
Thanks Gavin, I frequently reach the help page or any other document concerning the doubt, but at least for me it is by no means easy to correctly interpret their contents without the help of more experienced people. I do hope I will catch up ASAP! Cheers, Ricardo ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Received on Wed Jan 03 19:21:12 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 03 Jan 2007 - 12:30:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.