There are a couple of ways to do this. You can open a plotting window before
using barplot2. If you are running R on Windows, help(windows) for how to
change the plotting window dimensions (or help(quartz) for Mac, help(X11)
for linux).

The second method is to change the margins in the current plotting window
with the par(mar= or mai=) command (help(par). 

----------------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352

-----Original Message-----
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of Adrienne Keller
Sent: Thursday, June 23, 2011 4:11 PM
To: r-help@r-project.org
Subject: [R] change plot area in barplot2

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

______________________________________________
R-help@r-project.org 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.

______________________________________________
R-help@r-project.org 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.

Reply via email to