Skip to content
Prev 138106 / 398506 Next

How to create following chart for visualizing multivariate time series

If you want color, then a slight addition to Henrique's solution will do it:

x <- y <- seq(-4*pi, 4*pi, len=27)
r <- sqrt(outer(x^2, y^2, "+"))
library(lattice)
colkey <- colorRampPalette(c('red','yellow','green'))(32)
levelplot(r, colorkey=list(col=colkey),
   col.regions=(col=colkey))
On Sat, Mar 1, 2008 at 6:08 PM, Henrique Dallazuanna <wwwhsd at gmail.com> wrote: