Skip to content
Back to formatted view

Raw Message

Message-ID: <a06210201be84b01d46e6@[192.168.0.110]>
Date: 2005-04-14T23:43:25Z
From: Sebastien Durand
Subject: Display execution in a function

Dear all I hope you haven't received this message twice,

Here is a simplified version of a function I made:

############

plotfunc<-function(x){
#x a vector
cat("please select two points","\n")
plot(x)
points<-locator(2)
return(points)
}

############

Using the last R version 2.01 for mac os x (v1.01 aqua GUI)

I would like to know what should I do to make 
sure that my text line will be printed prior to 
the drawing of the plot.
I hope you will agree with me that it is not 
useful to have the plot displayed and R waiting 
for user input while nothing has yet been 
displayed for instructions!

Thanks a lot

Sebastien Durand
--