Question

I created a 3d plot with rgl in R like this:

persp3d(log2(x), log2(y), z, col=color, ticktype="detailed", xlab="filesize [kb]", ylab="record size [kb]", zlab="speed [b/s]", axes=TRUE, back="lines")

Now I want to highlight all edges by black lines. This would basically be the same as drawing a wireframe model over the surface. But I can't find a method in the rgl package that can do the job. The best I found is grid3d(c("x", "y+", "z")) but that highlights only certain edges that I see from behind.

Any help would be greatly appreciated.

here is the picture of the plot so far http://i.stack.imgur.com/U1aTk.png

Best, Loddi

Was it helpful?

Solution

surface3d(log2(x), log2(y), z,  back="lines")
surface3d(log2(x), log2(y), z,  front="lines")

See also ?rgl.material for parameters available

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top