본문 바로가기
4. 그래프 꾸미기(저수준 함수)/margin - 여백

[R시각화] 현재 그래프의 여백(margin)을 눈으로 확인 방법

by makhimh 2020. 12. 30.
반응형

그래프가 그려진 상태에서 아래 코드를 입력하면 됩니다. 

 

box(col="red")
box("figure", col="green")
box("outer", col="blue")

 

각각 어떤 의미인지는 아래 그래프를 보시면 알 수 있습니다. 

 

par(mar=c(2,2,2,2),oma=c(2,2,2,2))
plot(0,xlim=c(0,10),ylim=c(0,10),type="n")
box(col="red")
box("figure", col="green")
box("outer", col="blue")

 

반응형

댓글