Skip to content
Prev 387149 / 398502 Next

Need help using lattice

Thank you.

From: Gerrit Draisma <gdraisma at xs4all.nl>
Date: Tuesday, February 9, 2021 at 6:14 AM
To: Parkhurst, David F. <parkhurs at indiana.edu>
Cc: r-help at r-project.org <r-help at 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(lattice)
df <- expand.grid(site=c("een","twee","drie","vier","vijf"),
                  month=factor(3:12,levels=1:12,
                               labels=month.abb, ordered=TRUE))
df$conc <- rnorm(dim(df)[1])
dotplot(month~conc|site,data=df)

HTH, Gerrit



Op 08-02-2021 om 21:04 schreef Parkhurst, David F.: