[R-sig-Geo] strange performances of R graphic window under Linux and MS WIndows

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Thu Jan 22 16:29:15 CET 2009


2009/1/22 Enrico Guastaldi <enrico.guastaldi at gmail.com>:

> Moreover, the graphic result is very poor, if I compare the resolution of
> two graphic windows (see attached file, Linux ont he left, and Windows on
> the right: the latter is really much better!!!)
>
> What I'm doing wrong? Or, what is wrong in X configuration of our Linux
> computers?
> Remeber that R in MS Windows under virtual machine is 10 times faster!

 Cairo?!

 Your attachments have been stripped (or you forgot to attach them),
but latest R versions use the Cairo graphics 'engine', which produces
higher quality output at a speed cost. You can fire up a non-Cairo
device with X11(type="Xlib").
 The difference in speed is a factor 5 on my machine:

 > X11(type="Xlib")
 > system.time(pairs(USJudgeRatings))
   user  system elapsed
  0.176   0.004   0.407
 > system.time(pairs(USJudgeRatings))
   user  system elapsed
  0.836   0.252   2.398

 Cairo graphics can look a bit 'blurred' because of the anti-aliasing.

Barry




More information about the R-sig-Geo mailing list