From ripley at stats.ox.ac.uk  Sun Jan 28 08:10:05 2007
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Sun, 28 Jan 2007 07:10:05 +0000 (GMT)
Subject: [Rd] Fwd: controlling plot height
In-Reply-To: <f6aa47200701272207y70dfa8d9q11b9a9b7b2dfa1c4@mail.gmail.com>
References: <f6aa47200701272120x3d4d472awdfaff6c5ce0bc2f7@mail.gmail.com>
	<f6aa47200701272207y70dfa8d9q11b9a9b7b2dfa1c4@mail.gmail.com>
Message-ID: <Pine.LNX.4.64.0701280708020.7800@gannet.stats.ox.ac.uk>

On Sat, 27 Jan 2007, t.d. kaplan wrote:

> hi,
>
> i am trying to create a plot of reduced height. i am able to achieve
> this with:
>
> par(pin=c(par("pin")[1], 1))
>
> however, the plot is surrounded by large margins. is there a way for
> me to reduce the margins to match the dimensions of the plot?

It sounds as if it is the device region not the plot region which you wish 
to reduce in height.  You do that when opening the device, e.g.

pdf(width=10, height=4)

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



[Rd] Fwd: controlling plot height
Prof Brian Ripley