Re: [R] Need help using lattice

2021-02-09 Thread Parkhurst, David F.
Thanks. What editor do you use? I'm working in a Mac, if that makes a difference. From: Gerrit Draisma Date: Tuesday, February 9, 2021 at 5:10 PM To: Parkhurst, David F. Cc: r-help@r-project.org Subject: Re: [R] Need help using lattice Ha David, I do not know. It must be that your Apr

Re: [R] Need help using lattice

2021-02-09 Thread Gerrit Draisma
=factor(3:12, levels=1:12,        labels=AprToDec, ordered=TRUE)) I get + signs in front of monames and labels, again as expected, but then it gives me another + sign. And if I try to add another ), it keeps giving me + signs. What is happening here? From: Gerrit Draisma Date: Tuesday, Febr

Re: [R] Need help using lattice

2021-02-09 Thread Parkhurst, David F.
    labels=AprToDec, ordered=TRUE)) I get + signs in front of monames and labels, again as expected, but then it gives me another + sign. And if I try to add another ), it keeps giving me + signs. What is happening here? From: Gerrit Draisma Date: Tuesday, February 9, 2021 at 6:14 AM To: Park

Re: [R] Need help using lattice

2021-02-09 Thread Parkhurst, David F.
Thank you. From: Gerrit Draisma Date: Tuesday, February 9, 2021 at 6:14 AM To: Parkhurst, David F. Cc: r-help@r-project.org Subject: Re: [R] Need help using lattice Ha David, Thanks for your reply. For your last question, you have to change month into an ordered factor variable: library

Re: [R] Need help using lattice

2021-02-09 Thread Gerrit Draisma
Ha David, Thanks for your reply. For your last question, you have to change month into an ordered factor variable: library(lattice) df <- expand.grid(site=c("een","twee","drie","vier","vijf"), month=factor(3:12,levels=1:12, labels=month.abb, ordere

[R] Need help using lattice

2021-02-08 Thread Gerrit Draisma
David, Is this what you are looking for? library(lattice) df <- expand.grid(site=c("een","twee","drie","vier","vijf"), month=1:12) df$conc <- rnorm(dim(df)[1]) dotplot(month~conc|site,data=df) HTH Gerrit __ R-help@r-project.org mailing

Re: [R] Need help using lattice

2021-02-08 Thread John Kane
ry 7, 2021 8:02 PM > > To: r-help@r-project.org > > Subject: [R] Need help using lattice > > > > I have a dataframe comprising a vector of E. coli concentrations, a > vector of > > months when the samples were taken, and a vector of sampled sites. I�d > > like t

Re: [R] Need help using lattice

2021-02-08 Thread PIKAL Petr
id > F. > Sent: Sunday, February 7, 2021 8:02 PM > To: r-help@r-project.org > Subject: [R] Need help using lattice > > I have a dataframe comprising a vector of E. coli concentrations, a vector of > months when the samples were taken, and a vector of sampled sites. I�d >

[R] Need help using lattice

2021-02-07 Thread Parkhurst, David F.
I have a dataframe comprising a vector of E. coli concentrations, a vector of months when the samples were taken, and a vector of sampled sites. I�d like to produce a lattice with sites along the horizontal axis, and months on the vertical. Each site-month box would then contain concentrations