Take Your Time

仕事や研究、コンピューターとの付き合い方

プロットの横軸の名前を変える。

xaxt = "n"を使うと消える。
axisで任意の名前をつける。

(例)

plot(seq(1,5),nurs.table[4,2:6],type = "b", col="black",ylim=c(0,.25), xlab = "", ylab="",pch = 1,xaxt = "n")
par(new = T)
plot(seq(1,5),nurs.table.f[4,2:6],type = "b", lty = 1,col="black", ,ylim=c(0,.25),xlab = "age", ylab="share of care givers",pch = 2, xaxt = "n")
legend("topright" ,c("male", "female"), pch = c(1,2))
axis(side =1, at = seq(1,5),labels = c("50-54","55-59","60-64","65-69","70-75"))
title(main = "Share of care givers, 2007")