问题描述
我正在使用ggplot2库,并且正在使用qplot命令
我知道我可以通过在我的qplot后面使用以下命令将输出保存为消除锯齿的映像文件
ggsave(file =filename.png)
但是我的液晶显示器怎么样?有没有办法在显示器上看到一个图形作为反锯齿grpah?
在Windows上,没有内置的抗锯齿功能。我不知道它是否计划在未来发布。您可以从 cairoDevice
或 Cairo
包中获得基于开罗的图形设备;但是,您需要首先安装 GTK +
: 下载并安装 Gtk + 2.12。 9 Runtime Environment Revision 2
from
另一个选择是通过 JGR
( http:// jgr.markushelbig.org /
)。我认为还有一个 Qt
的设备正在开发中。
I am using ggplot2 library and am working with the qplot commandI 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!