Skip to content
Back to formatted view

Raw Message

Message-ID: <60A8ABB7-07D2-443B-AE7E-9D5158FAF405@me.com>
Date: 2011-06-24T00:48:35Z
From: Marc Schwartz
Subject: change plot area in barplot2
In-Reply-To: <9DCEB3D5-B2E6-45E1-A1D5-C111642DB400@umontana.edu>

On Jun 23, 2011, at 4:11 PM, Adrienne Keller wrote:

> I would like to change the plot area for a figure I made with barplot2 so that it is rectangular (for example, 5 x 3 inches) rather than square, which is the default. What is the best way to do this?
> 
> Thanks,
> 
> Adrienne

Hi,

The size of the plot is going to be largely dependent upon the output device being used and the dimension settings for the device. If you are going to use a bitmapped device (eg. png()) as opposed to a vector device (eg. pdf()), then the physical size of the image will also be dependent upon the resolution of the display (in pixels per inch) upon which the file is being viewed.

See ?Devices for more information on the available output devices on your system. Then select the particular device you wish to use for details on how to adjust the dimensions.

Regards,

Marc Schwartz