Displaying 1 result from an estimated 1 matches for "newpanel".
Did you mean:
newcpanel
2012 Jan 30
1
Change line colors based on data values in Lattice
Say I have
x = seq(1, 40)
y = seq(1, 40)^2
g = rep(c("A", "B", "A", "B"), each = 10)
xyplot(y~x, groups = g, type = 'l')
Is there a way to have a single line and have it be one color when g == "A", and another when g == "B"?
Thanks!
Regards,
Andrew Liu
Fixed Income | Investment Fellow
T. Rowe Price
100 E. Pratt St, BA-0735