With xyplot
from the lattice
package, I can produce a scatterplot of y ~ x disaggregated into separate panels by factors (e.g., f1 and f2) with xyplot(y ~ x|f1*f2, data=d)
. I would like to change that so that the panels relate to values of f1 but within each panel there are separate lines y~x on each level of factor f2. I assume that it would be possible by changing the panel= option but I cannot see how to do it.
I think that this question has probably been asked before but in a different way ... resulting in me being unable to find anything!