[R] hide scatter points

Marlin Keith Cox marlinkcox at gmail.com
Fri Jul 9 21:20:22 CEST 2010


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

-- 
M. Keith Cox, Ph.D.
Alaska NOAA Fisheries, National Marine Fisheries Service
Auke Bay Laboratories
17109 Pt. Lena Loop Rd.
Juneau, AK 99801
Keith.Cox at noaa.gov
marlinkcox at gmail.com
U.S. (907) 789-6603



More information about the R-help mailing list