- こちらから
- 説明がないので、説明をしてみると優しい(易しいではなく)、と思う
- axesの制御は初めてなので、勉強がてら
x<-1:100
y<-(x-5)^2
par(mfcol=c(2,3))
plot(x,y)
plot(x,y,axes=TRUE)
plot(x,y,axes=FALSE)
plot(x,y,xaxt="n")
plot(x,y,yaxt="n")
plot(x,y,xaxt="n",yaxt="n")
par(mfcol=c(1,1))
par(mfcol=c(2,3))
plot(x,y,axes=FALSE)
axis(1)
plot(x,y,axes=FALSE)
axis(2)
plot(x,y,axes=FALSE)
axis(3)
plot(x,y,axes=FALSE)
axis(4)
plot(x,y,axes=FALSE)
axis(1)
axis(2)
plot(x,y,axes=FALSE)
axis(3)
axis(4)
plot(x,y,axes=FALSE)
axis(1)
axis(2)
axis(3)
plot(x,y,axes=FALSE)
axis(1)
axis(2)
axis(3)
axis(4)
par(mfcol=c(1,1))
par(mfcol=c(1,4))
plot(x,y,axes=FALSE)
axis(1)
plot(x,y,axes=FALSE)
axis(1,1:length(x))
plot(x,y,axes=FALSE)
axis(1,seq(from=10,to=100,by=10))
plot(x,y,axes=FALSE)
axis(1,c(0,50,100))
par(mfcol=c(1,1))
par(mfcol=c(2,3))
plot(x,y,axes=FALSE)
axis(1)
plot(x,y,axes=FALSE)
axis(1,col=2)
plot(x,y,axes=FALSE)
axis(1,1:length(x),1:length(x))
plot(x,y,axes=FALSE)
axis(1,seq(from=10,to=100,by=10),seq(from=10,to=100,by=10))
plot(x,y,axes=FALSE)
axis(1,seq(from=10,to=100,by=10),c("十","二十","三十","四十","五十","六十","七十","八十","九十","百"))
plot(x,y,axes=FALSE)
axis(1,c(0,50,100),c(0,"Half","Full"),col="red",col.axis="blue")
par(mfcol=c(1,1))