简体   繁体   English

石英设备:默认情况下,情节被切除

[英]Quartz device: plot is cutoff by default

Does anyone have any insight as to why the plot region would be cut off by default using the Quartz device? 是否有人对为什么默认情况下使用Quartz设备会切断绘图区域有任何见解?

% R --vanilla
> plot(1,1)

gives me this; 给我这个

在此处输入图片说明

The plot settings are normal 情节设置正常

> par("mar")
[1] 5.1 4.1 4.1 2.1

and running quartz.options(reset=TRUE) doesn't seem to change anything. 并且运行quartz.options(reset=TRUE)似乎没有任何改变。 What did I mess up?? 我搞砸了什么? Note this is a not a problem using the X11 device. 请注意,使用X11设备不是问题。

> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-apple-darwin13.1.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

Comment by @rawr spurred me in the right direction... @rawr的评论促使我朝着正确的方向前进...

The size of the device is too large relative to the screen resolution. 相对于屏幕分辨率,设备的尺寸太大。 I used 我用了

setHook(packageEvent("grDevices", "onLoad"), 
  function(...) grDevices::quartz.options(width = 6, height = 6))

in ~/.Rprofile to reduce the defaults (from 7x7). ~/.Rprofile以减少默认值(从7x7开始)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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