Ich fragte mich, warum ich nur eine Linie in meinem 3D-Scatterplot statt einer 3-D-Plot mit "Scatterplot3d" Paket sogar geplottet bekommen obwohl ich zwei Variablen habe?Warum eine Zeile statt einer 3-D mit Paket "Scatterplot3D"
Hier ist mein R-Code:
z = function(x, y) { dcauchy(2, x, y) }
x = seq(-10, 10, len = 1e3)
y = seq(.5, 2, len = 1e3)
z <- z(x, y)
require(scatterplot3d)
scatterplot3d(x = x, y = y, z = z, pch = 20, angle = 70)