Re: [R] Plotting a functional time series

2011-02-24 Thread Eduardo de Oliveira Horta
It seems the code I've sent had typos... Here's a corrected version: # x - sapply(1:10, function(i)rnorm(1000)) f - sapply(1:10, function(i)density(x[,i], from=-5,to=5)$y) grid - density(x[,1], from=-5,to=5)$x win.graph() persp(grid, 1:10, f,theta=-50, phi=30,

Re: [R] Plotting a functional time series

2011-02-24 Thread David Winsemius
I'm not a Windows user, but if win.graph is like other output device calls, it would need a dev.off() to close it. When I do it with pdf() and close with dev.off() I get ten pages, each with a density that is consistent with what should be seen with rnorm() as input. -- David. On Feb

Re: [R] Plotting a functional time series

2011-02-24 Thread David Winsemius
On Feb 24, 2011, at 3:06 PM, Eduardo de Oliveira Horta wrote: It seems the code I've sent had typos... Here's a corrected version: # x - sapply(1:10, function(i)rnorm(1000)) f - sapply(1:10, function(i)density(x[,i], from=-5,to=5)$y) grid - density(x[,1],

Re: [R] Plotting a functional time series

2011-02-24 Thread Eduardo de Oliveira Horta
Thanks a lot! Regards, Eduardo On Thu, Feb 24, 2011 at 6:47 PM, David Winsemius dwinsem...@comcast.net wrote: On Feb 24, 2011, at 3:06 PM, Eduardo de Oliveira Horta wrote: It seems the code I've sent had typos... Here's a corrected version: # x -

[R] Plotting a functional time series

2011-02-21 Thread Eduardo de Oliveira Horta
Hello, I'm willing to plot a sequence of densities on a 3d graph, something like - x - sapply(1:10, function(i)rnorm(1000)) f - sapply(1:10, function(i)density(x[,i], from=-5,to=5)$y) grid - density(x[,1], from=-5,to=5)$x