Thanks a lot!
Regards,
Eduardo
On Thu, Feb 24, 2011 at 6:47 PM, David Winsemius 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 <- sapply(1:10, f
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], fr
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 21,
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, d
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
win.gr
5 matches
Mail list logo