How do I draw gridlines using abline() that are behind the data?

前端 未结 4 1602
没有蜡笔的小新
没有蜡笔的小新 2020-12-05 06:57

When I draw grid lines on a plot using abline() the grid lines are drawn over the data.

Is there a way to draw the abline() lines behind

4条回答
  •  一向
    一向 (楼主)
    2020-12-05 07:31

    Another way of creating grid lines is to set tck=1 when plotting or in the axis function (you may still want to plot the points using points after creating the grid lines.

提交回复
热议问题