Skip to content

3d scatter plot with drop line

3 messages · Joel Bremson, Duncan Murdoch, Deepayan Sarkar

#
This is a follow up to my question from yesterday. I want to do in R
what is called a "3d scatter plot with drop lines" in S-PLUS.

Basically, it's a 3dscatterplot with lines connecting the x-y grid to
the z points.
The lines give a better perspective on the shape of the data surface.

How to?

Joel Bremson
UC Davis Statistics
#
On Wed, 17 Nov 2004 12:03:54 -0800, Joel Bremson <joel3000 at gmail.com>
wrote :
The scatterplot3d package does this in one of its examples, using
type='h'.

Duncan Murdoch
#
On Wednesday 17 November 2004 14:03, Joel Bremson wrote:
One possibility would be 

library(lattice)
cloud(y ~ x * z, type = 'h')

This actually tries to drop the lines to the X-Y plane (z = 0) (which is 
truncated on the 'x-y grid' if the z-limits don't include 0).

Deepayan