[R] plot slow?

Andrew C. Ward s195404 at student.uq.edu.au
Fri Oct 25 03:24:42 CEST 2002


I tried the following commands with R1.6.0 on Win2K:

> x <- 1:1000000
> system.time(plot(x,x,pch="."))

The plot took about 28s on my PIII. This seems okay for 1000000 
points. By any chance are you an author of Igor :-)

Regards,

Andrew C. Ward

CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
andreww at cheque.uq.edu.au



Quoting Seth Northrop <seth at reflectivity.com>:

> 
> Hi,
> 
> I just installed R and am comparing it to other packages (such
> as Igor).  
> So, you'll have to excuse me if this is a stupid question.  I
> run the
> simple command:
> 
> plot(1:1000000)
> 
> And it seems SO slow!  Igor blasts through this.
> 
> My theory is that R is redrawing the screen for every point
> that's being 
> graphed.  Is it possible to control how often R redraws a plot
> as its 
> building it - or, is there some other trick here to speeding
> up plots with 
> lots of points?
> 
> Thanks!
> Seth
> 
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
.-.-.-.-.-.-
> r-help mailing list -- Read
> http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To:
> r-help-request at stat.math.ethz.ch
> 
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._._._._
> 
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list