我如何告诉R总是用Cairo绘图?

时间:2022-10-17 07:07:56

I have been using Cairo when I generate plots in R, but I always use CairoWin() before each plot. Is there a way I can tell R to use Cairo for the whole session as soon as I start working?

当我在R中生成情节时,我一直在使用Cairo,但是我总是在每个情节之前使用CairoWin()。是否有一种方法可以让R在我开始工作后马上使用Cairo ?

1 个解决方案

#1


4  

Haven't tested, but probably as easy as:

还没有测试过,但可能很简单:

options(device="CairoWin")

And if you put that in your .Rprofile, it will be the default in all your R sessions.

如果你把它放到。rprofile中,它将是所有R会话的默认值。

#1


4  

Haven't tested, but probably as easy as:

还没有测试过,但可能很简单:

options(device="CairoWin")

And if you put that in your .Rprofile, it will be the default in all your R sessions.

如果你把它放到。rprofile中,它将是所有R会话的默认值。