从图中删除点而不删除线

时间:2014-03-05 15:33:59

标签: r plot

是否有人知道如何在不删除图中的线条的情况下删除点?

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

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

binomial scale

我使用过的突击队是:

> 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)

1 个答案:

答案 0 :(得分:4)

type="n"参数用于plot

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

并且它不会显示点数。

相关问题