Skip to content
Prev 181045 / 398503 Next

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

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:

 plot(density(t(t2)))

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?
thanks
-Francesco Stablum
P.S. sorry for my poor english