Message-ID: <4A09CE75.6010209@stats.uwo.ca>
Date: 2009-05-12T19:31:01Z
From: Duncan Murdoch
Subject: selecting points on 3D scatterplots
In-Reply-To: <fa2f76f60905121208y458239feyca2c85036d23f038@mail.gmail.com>
On 5/12/2009 3:08 PM, Abby Drake wrote:
> Hello Everyone,
>
> I am new to R and need some help.
>
> I have a matrix of x,y,z coordinates that I would like to
> interactively plot in 3D and then using the cursor select points on
> the plot and have the coordinates sent to a matrix. I am using the rgl
> package to plot the data at the moment because it allows me to rotate
> and zoom. I also tried cloud and scatterplot3D.
>
> I am looking for a function like 'locator' which is used to select
> points on 2D scatterplots.
There's no locator3d, but select3d is somewhat similar.
You could write a locator3d function using the rgl.setMouseCallbacks,
rgl.user2window and rgl.window2user functions, if you can figure out how
to indicate depth with a mouse click. identify3d might be a little easier.
Duncan Murdoch