Vining, Kelly
2012-Feb-24 18:10 UTC
[R] Solved: RE: help filtering points from a scatterplot
Thanks again for your help. I did indeed solve the problem by plotting the initial graph as type='n', then adding my subset of points using 'points'. Cheers, --Kelly V. -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Dallas Sent: Friday, February 24, 2012 5:58 AM To: r-help at r-project.org Subject: Re: [R] help filtering points from a scatterplot 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 at 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.