dier5158387 我是R语言新手,每当调用R的abline()时,总有 ‘Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) : plot.new has not been called yet ’这样的错误,然后就敲了一下,plot.new()。再调用abline时却什么都没有显示,除了一块面板。 希望知道如何解决的前辈指点指点,谢谢!
zggjtsgzczh <br /> x <- c(1:10)<br /> plot(x)<br /> abline(x,1)<br /> ?abline<br /> </p> This function adds one or more straight lines through the current plot 顾名思义,你需要首先有一个plot,然后再於绘制直线。[s:17]