[R] hide scatter points

Sarah Goslee sarah.goslee at gmail.com
Fri Jul 9 21:21:43 CEST 2010


plot(x2, y2, pch=16, type="n")

On Fri, Jul 9, 2010 at 3:20 PM, Marlin Keith Cox <marlinkcox at gmail.com> wrote:
> I need to hide scatter points and just leave the linear regression
> line.  I have tried to color the points "white", but that does not
> work.
>
> A working example, I need the green plotted points to be transparent or hidden.
>
> x2 <- seq(1,200,.5)
> y2 <- seq(5,204,.5)
> plot(x2, y2, pch=16, col="green")
> model<-lm(y2~x2)
> abline(model, lty=3, lwd=4, col="black")
>
> Thanks ahead of time,
>
> keith
>
> --


-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-help mailing list