plot() - xaxs, yaxs

CODEDRAGON Development/Big Data, R, ...

반응형


 

plot() - xaxs, yaxs

plot()함수에서 x , y 축의 간격 스타일을 지정하는 매개변수입니다.

 

·         xaxs="r" (regular)

·         xaxs="i" (interval)

 

 

 

xaxs="r" (regular)

x, y 축의 교차점이 4% 정도 간격이 넓어져 있습니다.

> plot.new()
> plot.window(xlim=c(0,10),ylim=c(0,10),xaxs="r")
> axis(1)
> axis(2)
> box()

>

 


 

 

xaxs="i" (interval)

x, y 축의 교차점이 0이 됩니다.

> plot.new()
> plot.window(xlim=c(0,10),ylim=c(0,10),xaxs="i", yaxs="i")
> axis(1)
> axis(2)
> box()

>

 


 

반응형