[R] [newbie] how to do a 3d plot of bivariate density?

Francesco Stablum stablum at gmail.com
Thu May 21 11:40:18 CEST 2009

Hello everybody.
I am new to R. Yesterday I passed the afternoon reading the
introduction and language reference, but I could'nt find a way to do a
3d plot of the density of a data table of size 2.
I am trying with:


but it mixes the two columns and calculate the density like it is a
1-dimensional casual variable.
I have looked at the documentation of density, but I was not able to do it.
I have also spent quite a lot time looking in the internet for similar
issues, but found nothing helpful.

any suggestions?
-Francesco Stablum
P.S. sorry for my poor english
The generation of random numbers is too important to be left to chance
- Robert R. Coveyou

More information about the R-help mailing list