Re: [R] pch="." plots much faster

From: Karl Ove Hufthammer <>
Date: Tue, 13 May 2008 15:44:10 +0200

Prof Brian Ripley:

>> matrices, especially given that X11 redraws the plot whenever its window
>> is covered/uncovered by another window, or when I switch virtual
>> desktops.

> That is a function of your X setup.  R does ask for backing store to be
> used, and so it seeems your setup is not doing so.

I believe this is a common problem. I have observed it on all systems and R versions I've used.

On my Fedora 8 system with R 2.7.0 Patched, the following causes complete repainting every time you I slightly move a window in front of the graphics window:

X11(type="Xlib"); n=10^5; plot(rnorm(n),rnorm(n))

Using cairo, the backing pixmap is used (but cairo is extremely slow in plotting 10^5 points, so that doesn't help much :-/ ).

Karl Ove Hufthammer

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 13 May 2008 - 14:25:28 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 13 May 2008 - 17:30:39 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive