I want to add the legend for my figure using "auto.key" in the xyplot function (library(lattice)). But I don't know how to change the colors of the lines in the "legend" part. I tried to add "col=1:8" in the "auto.key", but it changes the colors of the text of my Legend, not the lines. How can I change the colors of the lines?

xyplot(estimated~year,data=res,type="l",group=sp,
auto.key= list(points = FALSE, lines=TRUE, corner =c(0.1,0.6),size=5, col=1:8))

	[[alternative HTML version deleted]]

