Skip to content

Modifications to an abline

2 messages · Doran, Harold, Douglas Bates

#
Doran, Harold wrote:
One approach is to use abline to put the dashed line on the plot then 
use segments to add the line covering the observed range with lty = 1.
You will need to calculate the end points of the solid line but those 
are just the values of the fitted line at the minimum and maximum 
observed grade levels.