R中的qplot和anti-aliasing [英] qplot and anti-aliasing in R

查看:130
本文介绍了R中的qplot和anti-aliasing的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ggplot2库,并且正在使用qplot命令
我知道我可以通过在我的qplot后面使用以下命令将输出保存为消除锯齿的映像文件

  ggsave(file =filename.png)

但是我的液晶显示器怎么样?有没有办法在显示器上看到一个图形作为反锯齿grpah?

解决方案

在Windows上,没有内置的抗锯齿功能。我不知道它是否计划在未来发布。您可以从 cairoDevice Cairo 包中获得基于开罗的图形设备;但是,您需要首先安装 GTK + 下载并安装 Gtk + 2.12。 9 Runtime Environment Revision 2 from http://gladewin32.sourceforge.net/



另一个选择是通过 JGR http:// jgr.markushelbig.org / )。我认为还有一个 Qt 的设备正在开发中。


I am using ggplot2 library and am working with the qplot command I know I can save my output as an anti-aliased image file by using the following command after my qplot

ggsave(file="filename.png")

But how about my LCD display? is there any way to see a plot on the monitor as anti-aliased grpah?

解决方案

On Windows, there is no built-in anti-aliasing. I don't know whether it is planned for future releases or not. You can get a Cairo-based graphics device from either the cairoDevice or Cairo packages; however, you will need to install GTK+ first:

Download and install Gtk+ 2.12.9 Runtime Environment Revision 2 from http://gladewin32.sourceforge.net/

Another option would be to use Java-based graphics through JGR (http://jgr.markushelbig.org/). Also a Qt-based device is under development, I think.

这篇关于R中的qplot和anti-aliasing的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆