Skip to content
Prev 180115 / 398513 Next

selecting points on 3D scatterplots

Or with scatterplot3d:

The regular identify() usage with the iris data:

  s3d <- scatterplot3d(iris[,1:3], color=as.numeric(iris[,5]))
  identify(s3d$xyz.convert(iris[,1:3]))

or for locator: the values you get are the 2D representation of the 
current coordinate system and you can use locator directly for putting 
text in such as in:

text(locator(1), "The iris data")

If you want to convert back to 3D: This is not possible, because there 
is a while line behind that point you are clicking on ....

Best,
Uwe Ligges
Duncan Murdoch wrote: