title: how to plot a matrix as scatter plot in R?
body: <p>I have a binary files that is 1440 columns*720 rows. I read it into R as a matrix in order to plot it as scatter plot, but I wonder why the resulting plot was something weird (I do not have enough rep to upload the plot).</p>
  
  <pre><code>conner &lt;- file("D:\\complete.bin","rb")
  corrs &lt;- readBin(conner, numeric(), size=4,  n=1440*720, signed=TRUE)
  y1 &lt;- t(matrix((data=corrs), ncol=720, nrow=1440))
  plot(y1)
  </code></pre>
  
  <p>so I want to convert the matrix to be:</p>
  
  <pre><code>(5,4,5,2,1,6,9,8,......................................)all values
  </code></pre>
  
  <p>and plot them as a scatter plot.</p>
  
  <p>So how can we plot a matrix as scatter plot and not as an image?</p>