Viechtbauer Wolfgang (STAT)
2006-Dec-18 17:01 UTC
[R] Distance between x-axis values and title
Dear All, I looked at help(par), but could not figure out which setting controls the distance between the x-axis values and the x-axis title. Any pointer would be appreciated! Thanks in advance, -- Wolfgang Viechtbauer ?Department of Methodology and Statistics ?University of Maastricht, The Netherlands ?http://www.wvbauer.com/
On Mon, 18 Dec 2006, Viechtbauer Wolfgang (STAT) wrote:> Dear All, > > I looked at help(par), but could not figure out which setting controls > the distance between the x-axis values and the x-axis title. Any pointer > would be appreciated!mgp: looking at An Introduction to R may help you find your way around par(). -- 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
--- "Viechtbauer Wolfgang (STAT)" <Wolfgang.Viechtbauer at STAT.unimaas.nl> wrote:> Dear All, > > I looked at help(par), but could not figure out > which setting controls the distance between the > x-axis values and the x-axis title. Any pointer > would be appreciated! > > Thanks in advance, >?mpg probably Is this what you want catb <- c( 1,2,3,4,5,6) dogb <- c(2,4,6,8,10, 12) plot(catb,dogb, mgp=c(3,1,0)) # vs plot(catb,dogb, mgp=c(2,1,0))
Viechtbauer Wolfgang (STAT)
2006-Dec-18 17:54 UTC
[R] Distance between x-axis values and title
Thanks to all who responded so quickly! Yes, I totally overlooked par(mpg). Exactly what I was looking for. -- Wolfgang Viechtbauer ?Department of Methodology and Statistics ?University of Maastricht, The Netherlands ?http://www.wvbauer.com/> -----Original Message----- > From: John Kane [mailto:jrkrideau at yahoo.ca] > Sent: Monday, December 18, 2006 18:45 > To: Viechtbauer Wolfgang (STAT); r-help at stat.math.ethz.ch > Subject: Re: [R] Distance between x-axis values and title > > > --- "Viechtbauer Wolfgang (STAT)" > <Wolfgang.Viechtbauer at STAT.unimaas.nl> wrote: > > > Dear All, > > > > I looked at help(par), but could not figure out > > which setting controls the distance between the > > x-axis values and the x-axis title. Any pointer > > would be appreciated! > > > > Thanks in advance, > > > ?mpg probably > Is this what you want > > catb <- c( 1,2,3,4,5,6) > dogb <- c(2,4,6,8,10, 12) > plot(catb,dogb, mgp=c(3,1,0)) > # vs > plot(catb,dogb, mgp=c(2,1,0))