Error in plot.new()

北城余情 提交于 2019-12-20 06:00:51

问题


I'm using R Studio when doing some GIS plots. Unfortunately I keep getting this same error but only on certain maps.

Error in plot.new() : figure margins too large

I know its an issue with the plotting window size but I'm wondering if there is a way to edit the default settings without having to manually change the window size every time?


回答1:


You can alter R to plot to a different device, which can let you pop out the plot in a separate window.

A Windows solution:

plot_data <- sample(1:100,100)
windows(width=500,height=500)
plot(plot_data,type="o")

See also this answer.



来源:https://stackoverflow.com/questions/23562759/error-in-plot-new

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!