Displaying 1 result from an estimated 1 matches for "drawax".
Did you mean:
draw_x
2016 Apr 04
0
Question about function DrawDensity3D {VecStatGraphs3D}
...the function DrawDensity3D in package VecStatGraphs3D. My
question is: if we use more layers than one, could we change the
function in a way that in the final plot only the outmost layer is drawn
(the inner layers omitted)?
Best regards,
Atte Tenkanen
function (vectors, Div = 40, Layers = 3, DrawAxes = FALSE)
{
open3d(windowRect = c(100, 100, 800, 800))
bg3d("white")
Cx = vectors[, 1]
Cy = vectors[, 2]
Cz = vectors[, 3]
Cr <- kde3d(x = Cx, y = Cy, z = Cz, n = Div)
th <- seq(min(Cr$d), max(Cr$d), len = Layers + 2)
ramp <- colorRamp(c(&...