[R] Trellis Plot Labels
Turgut Durduran
durduran at yahoo.com
Fri Nov 17 19:51:15 CET 2006
Hello everyone,
I am ploting a groupeddata object with formula:
formula(mydatausegroup)
BF ~ HO | ID/Infar/Day
Using this command:
plot(na.omit(mydatausegroup), displayLevel=2,layout=c(10,2),aspect=2)
This trellis plot does almost what I want and produces a 10x2 trellis plot, each panel is labeled
as ID/Infar where infarct is either 1 or 0. And in each panel, it plots BF vs HO for each Day. However, the "days" are labeled simply as "1,2,3,4" instead of their actual values (ranging from 1 to 8). This just mapped for each ID the "1 st measurement, 2nd measurement, 3rd measurement, 4th measurement".
How can I get this trellis plot to use 8 different colors and label them correct?
Thanks,
Turgut
More information about the R-help
mailing list