[R] Adjusting axis labels on lattice xyplot

Rui Barradas ruipbarradas at sapo.pt
Mon Oct 17 17:31:11 CEST 2016


Hello,

I'm not a lattice user but the 'by' argument is not an argument of 
xyplot, it's an argument of ?seq.Date.

Hope this helps,

Rui Barradas

Em 17-10-2016 15:45, Rich Shepard escreveu:
> On Fri, 14 Oct 2016, David Winsemius wrote:
>
>> xyplot(amount ~ date | station, data=rain, main="Weather Stations",
>>   xlab="Date", ylab="Amount (inches)", pch=16, col=132,
>>   scales=list(y=list(at=0:4),
>>               x=list(at=seq(min(rain$date), max(rain$date),
>> by='week'), rot=90) )
>>     )
>
> David,
>
>    I searched ?xyplot for the 'by' option in scales and did not find it. I
> understand the other parameters of scales and would like to learn how to
> use
> 'by' when appropriate.
>
> TIA,
>
> Rich
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.



More information about the R-help mailing list