从图中删除点而不删除线

use*_*116 4 plot r

有没有人知道如何删除点而不删除情节中的线?

我创建了一个类似于下面链接中最后一个带有二项式比例的图。

是的,这些点是有用的,但是当在图中添加更多线条并专注于不同线条的不同趋势时,这些点感觉有点不必要。其次只是好奇如何改变情节中的外观。

二项式标度

我使用的突击队是:

> plot(Leaves>0~light,x,xlab="Light",ylab="Response")

> g=glm(formula = Leaves > 0 ~Light, family = binomial ,data =V.riviniana, na.action = na.exclude)

> curve(predict(g,data.frame("Light"=x),type="resp"),add=TRUE,lty=8)

> g2=glm(formula=Leaves>0~Light, family=binomial, data=V.biflora,na.action=na.exclude)

> curve(predict(g2,data.frame(Light"=x), type="resp"),add=TRUE,lty= 1)
Run Code Online (Sandbox Code Playgroud)

Jul*_*ano 5

使用type="n"参数来plot

plot(Leaves>0~light, x, xlab="Light", ylab="Response", type="n")
Run Code Online (Sandbox Code Playgroud)

它不会显示点。