The plot shown is produced by the following R code.
png("test.png")
plot(data[,4],data[,3],type='l',col="green")
par(new=TRUE)
plot(data[,4],data[,2],type='l',col="red")
dev.off()
The range of Y-axis differs for both the plots and it is overwritten as shown in the image. Could someone help to set the same Y-axis range for both the plots.