search for: subsetmatrix

Displaying 2 results from an estimated 2 matches for "subsetmatrix".

2012 Feb 24
1
help filtering points from a scatterplot
Dear useRs, I'm having trouble with what is likely a very simple issue with a simple graph. I have data in the format pasted below - total from which this is a subset is > 3 million rows. I'm plotting "Window" on the x axis, and either of the other two columns on the y axis. In both the second and third columns, the values are in a range from 0 to 1. I want to be able to plot
2012 Feb 24
0
Solved: RE: help filtering points from a scatterplot
...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.ht...