I believe this is what you want to do, though it may need tweaking. #Make up some data > a=seq(1,100,by=1) > b=runif(100,0,0.5)
#Make a matrix > matrix=cbind(a,b) #Subset the matrix based upon values of interest > subsetmatrix=matrix[which(b<0.1),] #Plot values > > plot(subsetmatrix[,2]~subsetmatrix[,1],ylim=c(0,1),las=1,ylab='Explan',xlab='Window') Hope this helps. -- View this message in context: http://r.789695.n4.nabble.com/help-filtering-points-from-a-scatterplot-tp4415833p4417247.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.