Xyplot comparing four variables is not letting me plot side-by-side

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:




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!

This is what the plot is meant to look like:


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.