Re: [R] Problem with "date"-x-axis in lattice

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Fri, 20 Jun 2008 15:32:04 -0400

There is an example in the examples section of ?xyplot.zoo in the zoo package of using panel.axis. It works largely the same way even if you don't use zoo.

On Fri, Jun 20, 2008 at 6:06 AM, Henning Wildhagen <HWildhagen_at_gmx.de> wrote:
> Hello list,
>
> i am trying to plot a continous variable y against a "date" variable, both
> in one dataframe named "df", using a code like this
>
> library(lattice)
> plot1<-xyplot(y~date, data=df, type="b")
>
> "date" is of class "Date", of course, format="%d.%m.%Y", and spans two
> calendar years. The problem is that the x-axis is labeled with only one
> tick mark corresponding to the year with century (%Y) of the second
> calendar year.
>
> Is there a way to define the increment of the x-axis tick marks?
>
> Cheers
>
> Henning
> --
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 20 Jun 2008 - 19:34:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 20 Jun 2008 - 20:32:15 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive