[R] Need help using lattice

Gerrit Draisma gdr@|@m@ @end|ng |rom x@4@||@n|
Mon Feb 8 18:21:46 CET 2021


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



More information about the R-help mailing list