Re: [R] y-axis and resizing window

From: Søren Merser <merser_at_image.dk>
Date: Sun 12 Jun 2005 - 21:13:51 EST

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

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@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@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
______________________________________________ R-help@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
Received on Sun Jun 12 21:19:55 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:32 EST