简体   繁体   中英

Make antialiased cairo default display for R on X11

I'm trying to display ggplot graphics using cairo 2D graphics on X11. I've changed type="cairo" and antialias="subpixel" in X11.options and rebound my x11 function following this question , but no matter what settings I start the display with, there is atrocious aliasing in my plots.

I've tried using CairoX11 from the Cairo CRAN package, and while the plots look great, the device frequently segfaults bringing down my entire R process. This happens fairly reproducibly when I have two graphics devices and I make one of them full screen in my tiling window manager.

I've noticed that the graphics in R Studio look great out of box. Is there some other switch somewhere I need to view R graphics using the standard X11 device (or some other device) that look as good CairoX11 graphics, but which doesn't crash R? How does R Studio do it?

默认的X11散布图

Hadley在最新版本的ggplot2中将默认形状更改为19,从而解决了该问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM