Skip to content

strange performances of R graphic window under Linux and MS WIndows

4 messages · Enrico Guastaldi, Barry Rowlingson, Roger Bivand

#
2009/1/22 Enrico Guastaldi <enrico.guastaldi at gmail.com>:
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
#
On Thu, 22 Jan 2009, Enrico Guastaldi wrote:

            
Probably wrongly configured. Note that the timing for x11(type="Xlib") is 
comparable with Windows, see capabilities() to see if you have "cairo" 
built. If it is built, it will be used, because it gives graphics output 
what is (more) device independent (looks the same on different devices), 
but may take longer. If I remember correctly, it also needs some pango 
packages, and things like font placings may depend on that.

This question is more appropriate for R-help.

Roger

PS. your attached figures did not get through - R mailing list sites have 
an explicit policy on attachments, set out in the posting guide at:

http://www.r-project.org/mail.html#instructions

http://www.r-project.org/posting-guide.html

Your HTML-formatted version was discarded - see the instructions to see 
how to make your mail client only send plain text. If you had attached a 
PNG graphics file, it would (probably) have got through.

  
    
1 day later