search for: red_group

Displaying 1 result from an estimated 1 matches for "red_group".

Did you mean: red2group
2009 Aug 06
2
xyplot and subscripts
Hi all, I have a data frame like this: DF <- data.frame(x = rnorm(10), y = rnorm(10), gr = rep(1:5, 2)) and I make the following xy-plot: library(lattice) xyplot(y ~ x, data = DF, groups = gr, type = "b", col = 1) Is it possible that the two points that belong to the same group specified by DF$gr to have a different color -- that is for each pair of points connected by the line,