Hi, not sure why but my xyplot is not letting me plot comparisons of multiple variables side-by-side (see picture). Not sure if there's some setting that I've messed up or there's something wrong with my script:
data=read.csv("Conductivity.csv",header=T)
attach(data)
library(lattice)
Salinity = ordered(Salinity, levels = c("Low", "Medium","High"))
Water = ordered(Water, levels = c("0%","5%","15%"))
xyplot(Electroconductivity ~ Salinity | Water, groups = Type, auto.key = list(corner = c(0,0.9)),
main = "Electroconductivity as a function of salinity, water content (%) and soil type")
If someone could help, that'd be much appreciated!