title: connecting a set of points with lines in R
body: <p>At present, I generate a figure using the following script</p>
  
  <pre><code> dat &lt;- matrix(runif(1000*99),99,1000)
   dat &lt;- rbind(rep(0.1,1000),dat)
   out &lt;- cmdscale(dist(dat),k = 2)
   plot(out)
   points(out[1,1],out[1,2],col = "red")
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/vDplh.jpg" alt="enter image description here"></p>
  
  <p>Based on the above figure, I want to connect that red point with other points, how to do that?</p>