[R] graph dimensions default
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Aug 14 14:30:23 CEST 2007
On Tue, 14 Aug 2007, Simon Pickett wrote:
> Thankyou, that does the trick nicely. I thought that kind of thing could
> be specified using par() but I guess not.
As I said, size is not a property of the plot.
And par() applies to the current device, not future ones.
> Thanks again.
>> On Tue, 14 Aug 2007, Simon Pickett wrote:
>>> I would like to (if possible) set the default width and height for
>>> at the start of each session and have each new graphic device overwrite
>>> the previous one.
>> Hmm. It is graphics devices that have dimensions, and plots that
>> overwrite other plots on a device, so your intentions are pretty unclear.
>> (If you resize a device window the plot dimensions change so they are not
>> intrinsic to the plot.)
>> If you want the default behaviour to be like normal but with, say, a wider
>> onscreen device window you can have (on Windows, which you didn't say)
>> mywindows <- function(...) windows(width=10, height=6, ...)
>> in your ~/.Rprofile . Otherwise, please try again to tell us what you
>> do want.
>>> I only know how to do this using windows(width=,height=...) which opens
>>> a new plotting device every time, so I end up with lots of graphs all
>>> the place until I get the one I want!
>>> Thanks in advance,
>>> Simon Pickett
>>> PhD student
>>> Centre For Ecology and Conservation
>>> Tremough Campus
>>> University of Exeter in Cornwall
>>> Tel 01326371852
>>> R-help at stat.math.ethz.ch mailing list
>>> PLEASE do read the posting guide
>>> and provide commented, minimal, self-contained, reproducible code.
>> Brian D. Ripley, ripley at 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
> Simon Pickett
> PhD student
> Centre For Ecology and Conservation
> Tremough Campus
> University of Exeter in Cornwall
> Tel 01326371852
Brian D. Ripley, ripley at 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
More information about the R-help