I have a data set with multiple columns, and I can’t figure out how to plot a line plot showing each variable plotted against a specific Y axis. In this case, the X-axis is “Exposure”, and I want the left Y-axis to be “HFR”, and the right Y-axis to be “Stars”.
Both “HFR” and “Stars” are plotted against “Exposure”, so each data point pair shares the same X value. The Y values are considerably different however. “HFR” varies from 0 to 5, while “Stars” varies from 0 to about 400. The problem is that when I add “Stars” to the plot and create a second Y-axis. both axes (left/HFR and right/Stars) go from 0 to 400. This clearly is a problem, since the line plot of “HFR” is now a barely visible horizontal line down at the bottom of the graph.
So my question is: how do I assign each variable to a specific Y axis, and also how do I assign specific min/max values to that axis? I would like the left/HFR axis to go from 0 to 5 (better yet, automatically adjust to HFR maximum), and the right/Stars axis to go from 0 to 400 (better yet, automatically adjust to Stars maximum). I’ve gone through all the documentation, and although I can see references to doing what I want, I can’t find specific instructions for correlating a specific variable with a particular axis.