I am interested in plotting graphs using same scale! The below code plots two series using overlay however each series is given a different scale on Y1 and Y2 axis. Please can you help on how we modify the code to have both series of data on the same scale?
I need to make sure the p-scores (probabilities) reflect actual response rates in our campaign history. These plots help us with that activity. Many Thanks
By default, the gplot axes auto-scale to fit the data ... if you plot slightly different data, the auto-scale axes will be slightly different.
Since you want the axes to be exactly the same, you can hard-code the range of the axes, rather than letting them auto-scale. Since you use axis1 for both the left & right axes, you will only need to hard-code it in the axis1 statement. Something like ...