From ripley at stats.ox.ac.uk  Tue Apr 29 09:18:01 2003
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue Apr 29 09:19:40 2003
Subject: [Rd] ylab in time series plot (PR#2869)
In-Reply-To: <200304282007.h3SK76pD016858@pubhealth.ku.dk>
Message-ID: <Pine.LNX.4.44.0304290814190.16266-100000@gannet.stats>

And the bug is?

You got a correct plot, with a correct warning.

On Mon, 28 Apr 2003 kademan@phz.com wrote:

> You get a warning message when you specify a ylab parameter while
> plotting data whose x's are POSIXct values.  Apparently the
> `axis.POSIXct' method tries to reset the ylab---via the ...
> parameter---after it has already been set by higher level methods.

Nope.  axis.POSIXct is passed the `lab' parameter but does not know what
to do with it -- and that's the warning.

> Here is a function that illustrates the problem.
> 
>   ylabProblem <- function() {
>     x <- ISOdate(2003, 4, 1:10)           # POSIXct vector
>     y <- rnorm(10)
>     plot(x, y, ylab = 'I am y')
>   }
> 
> and this is what I get when I run it.
> 
>   > ylabProblem()
>   Warning message: 
>   parameter "ylab" couldn't be set in high-level plot() function 
> 
> --please do not edit the information below--
> 
> Version:
>  platform = sparc-sun-solaris2.6
>  arch = sparc
>  os = solaris2.6
>  system = sparc, solaris2.6
>  status = 
>  major = 1
>  minor = 7.0
>  year = 2003
>  month = 04
>  day = 16
>  language = R
> 
> Search Path:
>  .GlobalEnv, package:methods, package:ctest, package:mva, package:modreg, package:nls, package:ts, Autoloads, package:base
> 
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
> 

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


[Rd] ylab in time series plot (PR#2869)
Prof Brian Ripley