addInterval function

Draw intervals or arrows on plots.