Hi, I would like to add an additional key inside of a panel based on a factor that is not the "groups" argument. I've tried using the panel.key function in latticeExtras, but I cannot get the line types the way I want it.
Using my factor myGroups, I've tried this: panel.key(text=levels(myGroups),lines=TRUE,points=FALSE,corner = c(0,.98),key=list(lines=list(lty=1:length(levels(myGroups))))) I then get the key where I want it, the text is right, but line types are not correct (always lty=1, I think). Any ideas on how I could solve this? /Fredrik -- "Life is like a trumpet - if you don't put anything into it, you don't get anything out of it." [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.