Re: [R] Adjusting axis labels on lattice xyplot [RESOLVED]

2016-10-17 Thread Rich Shepard
On Mon, 17 Oct 2016, Rui Barradas wrote: I'm not a lattice user but the 'by' argument is not an argument of xyplot, it's an argument of ?seq.Date. Rui, Yes, this does help. Thanks very much, Rich __ R-help@r-project.org mailing list -- To

Re: [R] Adjusting axis labels on lattice xyplot

2016-10-17 Thread Rui Barradas
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

Re: [R] Adjusting axis labels on lattice xyplot

2016-10-17 Thread Rich Shepard
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,

Re: [R] Adjusting axis labels on lattice xyplot

2016-10-15 Thread Rolf Turner
On 16/10/16 12:10, Rich Shepard wrote: On Sat, 15 Oct 2016, David Winsemius wrote: I am not the one to answer the windoze question but my Mac (being less sensible than Rolf) also pops up a help window when queried with ?xyplot() David, Well, on my Slackware system writing in emacs with

Re: [R] Adjusting axis labels on lattice xyplot

2016-10-15 Thread Rich Shepard
On Sat, 15 Oct 2016, David Winsemius wrote: I am not the one to answer the windoze question but my Mac (being less sensible than Rolf) also pops up a help window when queried with ?xyplot() David, Well, on my Slackware system writing in emacs with ESS ?read.csv() produces the error message

Re: [R] Adjusting axis labels on lattice xyplot

2016-10-15 Thread Rich Shepard
On Sun, 16 Oct 2016, Rolf Turner wrote: Presumably you are running (yeuccch) Windoze, Rolf, Not since mid-1997. Slackware-14.1 on this host. Rich __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Adjusting axis labels on lattice xyplot

2016-10-15 Thread David Winsemius
> On Oct 15, 2016, at 3:48 PM, Rolf Turner wrote: > > On 16/10/16 11:28, Rich Shepard wrote: >> On Fri, 14 Oct 2016, Rich Shepard wrote: >> So typing ?xyplot at the console doesn't bring up a help page? That would imply that you need to reinstall R. >>

Re: [R] Adjusting axis labels on lattice xyplot

2016-10-15 Thread Rolf Turner
On 16/10/16 11:28, Rich Shepard wrote: On Fri, 14 Oct 2016, Rich Shepard wrote: So typing ?xyplot at the console doesn't bring up a help page? That would imply that you need to reinstall R. Will rebuild and re-install tomorrow morning. Sigh. User error. I entered the string as a

Re: [R] Adjusting axis labels on lattice xyplot

2016-10-15 Thread Rich Shepard
On Fri, 14 Oct 2016, Rich Shepard wrote: So typing ?xyplot at the console doesn't bring up a help page? That would imply that you need to reinstall R. Will rebuild and re-install tomorrow morning. Sigh. User error. I entered the string as a function, e.g., ?xyplot() rather than by its

Re: [R] Adjusting axis labels on lattice xyplot

2016-10-14 Thread Rich Shepard
On Fri, 14 Oct 2016, David Winsemius wrote: Notice that the formula has just the column names rather than using `$`. But need to give `rain$date` to functions in hte scales list. It always seemed to me that the evaluation of names inside the scales list should also be evaluated inside the

Re: [R] Adjusting axis labels on lattice xyplot

2016-10-14 Thread David Winsemius
> On Oct 14, 2016, at 3:51 PM, Rich Shepard wrote: > > On Fri, 14 Oct 2016, David Winsemius wrote: > >>> rain <- source("~/raindata.dat") >>> str(rain) >> List of 2 >> $ value :'data.frame': 341 obs. of 3 variables: >> ..$ station: Factor w/ 6 levels

Re: [R] Adjusting axis labels on lattice xyplot

2016-10-14 Thread Rich Shepard
On Fri, 14 Oct 2016, David Winsemius wrote: rain <- source("~/raindata.dat") str(rain) List of 2 $ value :'data.frame': 341 obs. of 3 variables: ..$ station: Factor w/ 6 levels "0.3E","0.6W",..: 1 1 1 1 1 1 1 1 1 1 ... ..$ date : Factor w/ 62 levels "2013-12-01","2013-12-02",..: 32 33 34

Re: [R] Adjusting axis labels on lattice xyplot

2016-10-14 Thread David Winsemius
> On Oct 14, 2016, at 12:03 PM, Rich Shepard wrote: > > I've read chapters 7 and 8 in the Lattice book and do not see how to thin > labels on the x and y axes of an xyplot(), and how to rotate the dates on > the x axis for easier reading (rot did not do the job for