How to set cairo as default backend for x11() in R? How to set cairo as default backend for x11() in R? r r

How to set cairo as default backend for x11() in R?


To make this permanent, you could add the following lines to your ~/.Rprofile file:

setHook(packageEvent("grDevices", "onLoad"),function(...) grDevices::X11.options(type='cairo'))options(device='x11')


Define another function 'x11' which sets the proper type:

x11 = function (...) grDevices::x11(...,type='cairo')