Is this something like you want? I assume you could also create a dialog box:
number.clicks-4
my.coords-NULL
for (i in 1:number.clicks)
{
plot(0,0, type=n)
seg1-arrows(-0.5,-1,0.5,0, col=1)
seg2-arrows(0,-1,-0.3,0.3, col=2)
seg3-arrows(0.2,-0.7,-0.5,0, col=4)
if
Dear all,
I need to run a interactive procedure where the user
will need click on the screen (over a XY plot)
and I need to record the XY coordinate which the
user clicked. Roughly I wrote a short code below.
You see that I suppose that the user will choose
four coordinates inside the region of
?locator
On Fri, Jun 20, 2008 at 11:25 PM, milton ruser [EMAIL PROTECTED] wrote:
Dear all,
I need to run a interactive procedure where the user
will need click on the screen (over a XY plot)
and I need to record the XY coordinate which the
user clicked. Roughly I wrote a short code below.
Thanks Jim.
I included your suggestion on the script and run fine.
But how can I skip (record X and Y as NULL) on some steps?
On this example it donĀ“t occour, but when working with real data I will need
bypass some acquisitions. Is there a way of do it on a for() looping? I
noticed that if I
Jim,
In fact, if I click stop the for() looping and stop, and I need to
continue on the for().
By other side, is there a way of I ask for the user acquire point (with a
dialog box with Yes or No options), and if the user anwer Yes I collect the
points, otherwise I go for the next step of for()
5 matches
Mail list logo