I already have step plots with R on different scales, and I would like to put them all on the same graph so I can compare them , is there a function that can do that easily enough so that I don't have to change the codes ? Same problem with histograms, plots in general. For example, my code for 1 plot is the following with ggplot2 package :
ggplot(e,aes(a,b/max(b)*100))
+geom_step(lwd=1.2,direction="hv",colour="black")
+ annotate(geom="rect", xmin =0,xmax=160/60,ymin=0,ymax=100,alpha=.4,fill="green")
+annotate(geom="rect", xmin =160/60,xmax=779/60+160 /60,ymin=0,ymax=100,alpha=.4,fill="blue")
+ggtitle("Départ HTA MARCEAU DR 8A 25/11/2016")
+ylab("%Clients coupés")+xlab("Durées d'interruptions (en h)")
+annotate("text", x=c(1.5,10),y=c(70,80), label=c("Localisation","Dépannage"))
+ geom_vline( xintercept = (0/3600),col = c("red"))
+geom_vline( xintercept = (2475/3600),col = c("blue"),show.legend=TRUE)
+geom_vline( xintercept = (939/60+2475/3600+13/60))
I will probably add an xlim in there too.
Thanks.