[R] writing function (plot problem)

2010-04-10 Thread casperyc

Hi,

===
x=rnorm(20)
y=rnorm(20)
t=lm(y~x)
plot(t)
===

you will get 

click or hit enter to next page...

how do I write a function to archieve this ?

say

plot(x,y)
then pause, wait
plot(y,x)

Thanks!

casper
-- 
View this message in context: 
http://n4.nabble.com/writing-function-plot-problem-tp1835723p1835723.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] writing function (plot problem)

2010-04-10 Thread jim holtman
?devAskNewPage

On Sat, Apr 10, 2010 at 7:49 PM, casperyc caspe...@hotmail.co.uk wrote:


 Hi,

 ===
 x=rnorm(20)
 y=rnorm(20)
 t=lm(y~x)
 plot(t)
 ===

 you will get

 click or hit enter to next page...

 how do I write a function to archieve this ?

 say

 plot(x,y)
 then pause, wait
 plot(y,x)

 Thanks!

 casper
 --
 View this message in context:
 http://n4.nabble.com/writing-function-plot-problem-tp1835723p1835723.html
 Sent from the R help mailing list archive at Nabble.com.

 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.htmlhttp://www.r-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.




-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.