setwd("/Users/andrew/Desktop") c=scan("maxCondNum") bins=seq(0,20,2) hist(c,breaks=bins,col="white",xlab="Loop Number",ylab="frequency",main="Max Loop Number (k9mail)",xaxt="n",yaxt="n") axis(side=1,at=bins) axis(side=2,at=seq(0,360,20))
xaxt="n"和yaxt="n"指定直方图不画坐标,然后用"low level plotting command" axis来画坐标, help(...)可以打开help文档