Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upY axis range in fitPlot not accounting for prediction interval #3
Comments
|
Similar problem with |
|
This issue is actually with |
When plotting SLR results with both confidence and prediction intervals, if the range the prediction interval on the y axis reaches beyond the min/max y axis range of the dataset, fitPlot will not account for this, and the resulting plot will exclude the prediction interval.
Example:

fitPlot Default
fitPlot(slr_lm, interval="both", xlab = "Median Elevation (m a.s.l.)", ylab ="Front Line Variation (m)")Manually Adjusted

fitPlot(slr_lm, interval="both", xlab = "Median Elevation (m a.s.l.)", ylab ="Front Line Variation (m)", ylim=c(-70, 30))