And even more for the heck of it... this kind of thing is also
device-dependent.
(this is *not* a controlled test; some variation could be due to other
processes running on the machine)
-Don
> x11(type='Xlib')
> system.time(plot(runif(1e6),runif(1e6)))
user system elapsed
0.712 0.165 2
Another few data points, just for the heck of it. This is on a 2.66GHz
Intel Core Duo iMac.
Rgames> system.time(plot(runif(1e6),runif(1e6)))
user system elapsed
34.405 0.079 34.432
Rgames> system.time(plot(runif(1e6),runif(1e6),pch='.'))
user system elapsed
12.602 0.032 12.596
Dear Sarah,
RE:
> Hi all,
>
> I'm working with a bunch of large graphs, and stumbled across
> something useful. Probably many of you know this, but I didn't and so
> others might benefit.
>
> Using pch="." speeds up plotting considerably over using symbols.
>
>> x <- runif(100)
>> y <- run
That is a function I did not know about, thanks Hadley!
I still don't see the speed increase that you do with the base plot
package, but I'm sticking with ggplot anyway!
> x<-runif(1e6)
> y<-runif(1e6)
> system.time(print(qplot(x,y)))
user system elapsed
42.234 0.520 43.061
> system.time(
You need: system.time(print(qplot(x,y,pch=I('.'
Hadley
On Fri, Nov 18, 2011 at 1:30 PM, Justin Haynes wrote:
> Very cool. Sadly, as far as I can tell, it doesn't work with ggplot though
> :(
>
>
>> x<-runif(1e6)
>> y<-runif(1e6)
>> system.time(plot(x,y,pch='.'))
> user system elapsed
>
Very cool. Sadly, as far as I can tell, it doesn't work with ggplot though
:(
> x<-runif(1e6)
> y<-runif(1e6)
> system.time(plot(x,y,pch='.'))
user system elapsed
0.824 0.012 0.845
> system.time(plot(x,y))
user system elapsed
33.422 0.016 33.545
> system.time(print(qplot(x,y)))
Hi all,
I'm working with a bunch of large graphs, and stumbled across
something useful. Probably many of you know this, but I didn't and so
others might benefit.
Using pch="." speeds up plotting considerably over using symbols.
> x <- runif(100)
> y <- runif(100)
> system.time(plot(x, y,
7 matches
Mail list logo