Skip to content
Prev 138103 / 398506 Next

How to create following chart for visualizing multivariate time series

"Henrique Dallazuanna" <wwwhsd at gmail.com> wrote in
news:da79af330803011508u4cd31c96j9584ace16cca697e at mail.gmail.com:
Works for me as well.
It was the vector created by the first levelplot() example. I had not 
run the code of Megh Dal. 

When I hastily looked at the help page and saw that "colorkey" was 
supposed to be a logical, I assumed that the list argument was throwing 
the error. If I had read the full text I would have seen that a list 
argument was also valid. This gives what appears to me to be identical 
success, but maybe it has risks that I don't understand:

levelplot(r, colorkey=TRUE,
     col.regions=(col=gray((0:32)/32)))

Thanks;
David Winsemius