Skip to content

How to create following chart for visualizing multivariate time series

4 messages · Megh Dal, jim holtman, Henrique Dallazuanna

#
Try something like this:

require(grDevices) # for colours
x <- y <- seq(-4*pi, 4*pi, len=27)
r <- sqrt(outer(x^2, y^2, "+"))
image(x, y, r, col=gray((0:32)/32))
colors <- colorRampPalette(c('red', 'yellow', 'blue'))  # create you
color spectrum
image(x,y,r, col=colors(100))
On Thu, Feb 28, 2008 at 9:28 PM, Megh Dal <megh700004 at yahoo.com> wrote:

  
    
#
library(lattice)
levelplot(r, colorkey=list(col=gray((0:32)/32)),
col.regions=(col=gray((0:32)/32)))
On 29/02/2008, Megh Dal <megh700004 at yahoo.com> wrote: