以下是我每日降水的情节:
barplot(floods, col="black", ylim=c(0,300),border=NA,cex.axis=0.9, cex.main=1.1,cex.names=0.9,cex.lab=1, space=c(2),xlab="June", las=1,tck=0.01, ylab="mm/day",
names.arg=c("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30"))
box()
ticks=c(1:29)
axis(side=1, tck=0.01, labels=NA)
axis(side=2, tck=0.01, labels=NA)
grid(NA, 6, lwd = 1.5, col="gray60")
barplot(floods, col="black", ylim=c(0,50),border=NA,cex.axis=0.9, ,cex.main=1.1,cex.names=0.9,cex.lab=1, space=c(2),xlab="June", las=1,tck=0.01, ylab="mm/day",
add=T)
我想用平均降水数据添加这些线图......
plot(c(1,30),c(0,300), type="n", border=NA,cex.axis=0.75, cex.main=1.1,cex.names=0.75,cex.lab=0.8,main="Mean Daily Precipitation Dehradun (1980-2014)",xlab="June", ylab="mm/day")
lines(temp.india$day, temp.india$rain, col="black", lty=1, lwd=2)