[R] y-axis and resizing window
Prof Brian Ripley
ripley at stats.ox.ac.uk
Sun Jun 12 12:39:25 CEST 2005
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
More information about the R-help
mailing list