모조리 Data/모조리 R

R에서 Error : figure margins too large 해결방법

JoeSung 2017. 10. 31. 15:47

> barplot(x)

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


문제 :

margin 기본 설정이 너무 좁게 설정 되어 있음


해결 :

아래 코드로 마진을 다시 설정 후 결과 확인


par("mar")

par(mar=c(1,1,1,1))


혹은

윈도우창을 최대로 늘린 뒤 결과 다시 확인




## Stack Over flow 참조

https://stackoverflow.com/questions/23050928/error-in-plot-new-figure-margins-too-large-scatter-plot

반응형