> chanye<-read.table("chanye.txt",header=T)
> chanye1<-chanye[,2:4]
> matplot(chanye1,type="o",pch=15:18,lty=1,bg="yellow",lwd=2,xlab="年份",ylab="比重",font=2,font.lab=2,cex.lab=1.5)
> legend("topright",pch=15:18,lty=1,merge=T,legend=names(chanye1),col=1:3)
画出的图显示横轴为2,4,6,8;但我想让它显示2003,2004...请问应如何修改matplot语句?如果加入xlim选项,又会说没有调用plot.new或者显示不了折线图
还望高手解答,谢谢!