[R] Fwd: Re: How to create following chart for visualizing multivariate time series

jim holtman jholtman at gmail.com
Fri Feb 29 03:43:46 CET 2008


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:
> I used ?image function to do that, like below :
>
> 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))
>
> However my next problem to add a color pallet for color description [as shown in following link]. If anyone here tell me how to do that, it will be good for me.
>
> Regards,
>
>
>
>
> Megh Dal <megh700004 at yahoo.com> wrote:  Hi all,
>
> Can anyone here please tell me whether is it possible to produce a chart displayed in http://www.datawolf.blogspot.com/ in R for visualizing multivariate time series? If possible how?
>
>
> Regards,
>
>
> ---------------------------------
>
>
>
> ---------------------------------
>
>
>
> ---------------------------------
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?  Tell me what you want to
do, not how you want to do it.



More information about the R-help mailing list