I am using ggplot2 on ubuntu 12.04. By default my x11 type is set to Xlib. So when I use a smoother in qplot, I get an error like:
"semi-transparency is not supported on this device: reported only once per page".
However, if I call x11(type="cairo"), everything works fine.
How do I get cairo as the default backend for x11?
options('device')
– Tilburyx11
. The documentation for thetype
parameter ofx11
says "The default is ‘"cairo"’ where available except on Mac OS X, otherwise ‘"Xlib"’. Clearly cairo is available, so it should be the default. – Schmooze