I have 2 data sets that I would like to plot. I would be using the xlim (200-820) and the same ylim (0-100) but the x values of these two data sets don't exactly match up, so I can't run a matrix or data.frame. I just basically want to plot the multiple data sets on one sheet that has fixed axes.
I've looked into ggplot and dataframe creation but because I have differing x axis values for every set I didn't think it was quite the right solution, however I may have interpreted their use incorrectly
plot(x1, y1, xlim=c(200,820), type = "l", xlab="Wavelength", ylab="Reflectance")
plot(x2, y2, xlim=c(200,820), type = "l", xlab="Wavelength", ylab="Reflectance")
axis(1,at=seq(200,850,50))
When done correctly, the plot should look like a bunch of graphs over one another with the same axes.