[R] Why is plotting so slow?

Chris Milkosky c.milkosky at xpedite.com
Thu Jan 31 19:15:25 CET 2002


WARNING - R newbie alert. =)

I'm sorry, this may be a real stupid question -  but why is plotting in R so slow?  BTW, I've used R in Windows 2000 (1 Ghz Pentium
512MB RAM) and on Linux box (200 Mhz P2 64MB RAM) and had the same problem.

I have CSV data sets that I load that sometimes have around 40000 data points in them.  Here's what I do usually:

> dataset<-read.csv("data.csv")
> windows()
> dev.list()	#making sure that windows is device #1
> dev.set(1)
> plot(dataset$Time,dataset$Value,type="l")

plot just sits there for a LONG time, and then after a few minutes, starts plotting 1 dot every once in a blue moon.

Anyone have an idea what I'm missing?

Thanks in advance - like I said, this may be a real stupid question, but when I searched through the FAQ and tried to RTFM, I didn't
see anything.

Thanks,

Chris


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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