Re: [R] graphical parameters: margins

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Wed 03 Jan 2007 - 08:22:28 GMT

In this particular case 'An Introduction to R' has a comprehensive description of graphical parameters with figures (as do all good books on S/R e.g. MASS4 - since it has the same first author).

On Tue, 2 Jan 2007, Ricardo Rodríguez - Your XEN ICT Team wrote:

> --
> 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!

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


______________________________________________ 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 22:58:50 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.