[R] y-axis and resizing window

Søren Merser merser at image.dk
Sun Jun 12 13:13:51 CEST 2005


thanks

with 'jams' i meant messes up, but your term overlap is exactly what i
actually had in mind

though a minor problem, do you think that the code will change to enable
checking for enough height-wise space?

regards søren

----- Original Message ----- 
From: "Prof Brian Ripley" <ripley at stats.ox.ac.uk>
To: "Søren Merser" <merser at image.dk>
Cc: "R - help" <r-help at stat.math.ethz.ch>
Sent: Sunday, June 12, 2005 12:39 PM
Subject: Re: [R] y-axis and resizing window


On Sun, 12 Jun 2005, Søren Merser wrote:

> using plot(..., las=1), i.e. horizontal axis labels, the labels on the
> y-axis jams if the heigth of the graphics windov becomes too low
> while both x-axis and  y-axis kind of removes superflus lables with las=0
> (default)
> is there a way to make plot behave alike with horizontal lables?

It I understand you correctly (what does `jams' mean?), this is nothing to
do with resizing. The axis labelling code checks for enough width-wise
space for labels, but not for enough height-wise space. Specifically,
do_axis for the y axis contains

      /* Check room for perpendicular labels. */
      if (Rf_gpptr(dd)->las == 1 ||
  Rf_gpptr(dd)->las == 2 ||
  tnew - tlast >= gap) {

so y-axis labels are always plotted for las %in% c(1,2) and hence may
overlap.  (Similar code exists for an x-axis.)

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


--------------------------------------------------------------------------------


> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html




More information about the R-help mailing list