1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| for (i in levels (DF$Lieu)){
+ par(mar=c(4,4,3,5))
+ plot(T1~Temps, subset(DF, Lieu==i), col="green4", main = i, axes=F,xlab="",ylab="", ylim=c(0,160), type="b", lwd=3)
+ axis(2, ylim=c(0,160),col="green4",col.axis="green4",at=seq(0, 160, by=50))
+ mtext("Texte",side=2,line=2.5,col="green4")
+
+ par(new = T)
+ plot(T2 ~ Temps, subset(DF, Lieu==i), col="red",axes=F,xlab="",ylab="",ylim=c(0,30), type="l")
+ axis(4 ,col="red",col.axis="red",at=seq(0, 25, by=5))
+ mtext("Texte",side=4,line=2.5,col="red")
+
+ axis(1, ylim=c(10,45),col="black",col.axis="black",at=seq(10, 45, by=2))
+ mtext("Temps",side=1,line=2.5,col="black")
+
+ } |
Partager