[R] Graphics question on putting axes in the margins

Peter Flom flom at ndri.org
Fri Nov 4 14:46:47 CET 2005


Hello

I am writing an article demonstrating how quantile plots work.  In one
figure, I generate 3 sets of normal data, and add different sorts of
outliers to each.  I then make 9 qqnorm plots, in a 3x3 array:

                   Outlier1   Outler2     Outlier3
Dataset1
Dataset2 
Dataset3


which I did using mfrow = c(3,3).

I'd like to use the space on the page as efficiently as possible,so I
made the margins small, but that leaves no space for axes.  Is there a
way to put axes only along the bottom and left side, so that a) The
individual qqplots maintain their shape and b) less space on the page is
taken up by white space?

I tried doing this with layout, but couldn't figure out how to do it
(although I looked extensively at Paul Murrell's excellent book on R
graphics)

TIA

Peter

Peter L. Flom, PhD
Assistant Director, Statistics and Data Analysis Core
Center for Drug Use and HIV Research
National Development and Research Institutes
71 W. 23rd St
http://cduhr.ndri.org
www.peterflom.com
New York, NY 10010
(212) 845-4485 (voice)
(917) 438-0894 (fax)




More information about the R-help mailing list