[R-SIG-Mac] Mac or Windows...?

David Kipling KiplingD at cardiff.ac.uk
Sun Nov 12 09:27:26 CET 2006


An even more marked effect of x11() can be seen with scatter plots with
large numbers of points (eg MvA microarray plots).   I guess this is really
taxing the antialiasing.

On my 667/G4 TiBook:

> quartz()
> system.time(plot(rnorm(10000), pch="."))
[1] 2.774 0.120 3.549 0.000 0.000
> x11()
> system.time(plot(rnorm(10000), pch="."))
[1] 0.082 0.009 0.174 0.000 0.000

That's over a 30-fold speed hike with x11.

Regards

David


On 11/11/06 06:56 stefano iacus wrote:

> Once (in the original implementation of the device) it was possible
> to set "antialias=FALSE" when opening quartz() to get reasonable
> speed in drawing, but of course you loose the nice quartz antialias
> effect, and get  results similar to X11 or windows device.
> 
> it seems that this option has no longer effect
> 
>> quartz()
>> system.time(example(heatmap))
> [1] 2.587 0.180 4.460 0.000 0.000
>> quartz(antialias=FALSE)
>> system.time(example(heatmap))
> [1] 2.573 0.176 4.545 0.000 0.000
>> x11()
>> system.time(example(heatmap))
> [1] 1.967 0.145 3.741 0.000 0.000
> 
> 
> Simon, have you time to check?
> 
> stefano
> 
> 
> On 11/nov/06, at 15:19, Paul Roebuck wrote:
> 
>> On Sat, 11 Nov 2006, Klaus Thul wrote:
>> 
>>> [SNIP]
>>> A major advantage of the Mac is the Quartz graphics
>>> device. Graphics quality on screen is much better and
>>> it is possible to copy and paste graphics without
>>> quality loss to other applications.
>>> [SNIP]
>> 
>> I agree with most of what he said here. I would note however
>> that we routinely have to use the X11() device instead of
>> quartz() device in R due to speed issues. I have code that
>> would take several minutes drawing a heatmap using quartz
>> device. One day I accidentally started X11 device instead
>> and found the same code executed in about fifteen seconds.
>> 
>> ----------------------------------------------------------
>> SIGSIG -- signature too long (core dumped)
>> 
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>> 
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

-- 
Professor David Kipling
Department of Pathology
School of Medicine
Cardiff University
Heath Park
Cardiff CF14 4XN



More information about the R-SIG-Mac mailing list