title: How to use location marking in leaflet package in R
body: <p>I have added two markers on leaflet map, and I want to link those markers (like travelling from one location to the other). How can I do that?</p>
  <p>The code that I used to create markers is provided below:</p>
  <pre><code>p &lt;- leaflet()
  p &lt;- p %&gt;%
    addTiles()
  p &lt;- p %&gt;% 
    addMarkers(lat = 32.051960, lng = 118.778030)
  p &lt;- p %&gt;%
    addMarkers(lat = 33.6028, lng = 73.0646)
  p
  
  </code></pre>