title: Plotting polygon shapefile with ggplot2 jumbles up the polygons
body: <p>I have a polygon shape file with village polygons for two different districts. When I plot this using base package</p>
  
  <pre><code>plot(shp_test,axes=T)
  </code></pre>
  
  <p>I get the following figure:
  <a href="https://i.stack.imgur.com/NROD1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NROD1.png" alt="enter image description here"></a></p>
  
  <p>However, when I try to plot this using ggplot2,</p>
  
  <pre><code>shp_fort&lt;-fortify(shp_test)
  ggplot() + geom_polygon(aes(x=long, y=lat), data=shp_fort, fill="red", alpha=.5)
  </code></pre>
  
  <p>I observe the following result.
  <a href="https://i.stack.imgur.com/CiNZz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CiNZz.png" alt="enter image description here"></a></p>
  
  <p>Could someone please explain what is happening here and how to resolve this.</p>
  
  <p><strong><em>I have not shared the shapefile here as its a big data set. However if still required please post a comment and I shall share the shapefile too.</em></strong></p>