Any ideas about how to change the color, line width and other Graphical parameters in Panel Function for xyplot
? I was trying use col
and panel.col
, did not work.
library(lattice)
xyplot(F(X) ~ X,
panel = function(x, y) {
panel.xyplot(x, y)
panel.abline(lm(y ~ x))
},
xlab = "x (%)",
ylab = "y (%)")