title: how can I plot choropleth map from attribute of shapefile?
body: <p>I want to make a choropleth map from joined csv file. I joined CSV to shapefile and I am able to create a barchart but cannot show the attribute in achoropleth map.</p>
  <pre><code>library(rgdal)
  library(sf)
  library(sp)
  library(tmap)
  library(dplyr)
  library(ggplot2)
  tmap_mode(&quot;plot&quot;)
  
  setwd(&quot;C:/Users/ITLINK/Desktop/unigis/environmental monitooring&quot;)
  Bagmati_shp&lt;- readOGR(dsn=&quot;BagmatiProvinance.shp&quot;)
  wasteDEPOSIT&lt;- read.csv(&quot;C:/Users/ITLINK/Desktop/unigis/environmental 
  monitooring/solid_waste.csv&quot;)
  Bagmati_shp@data&lt;- left_join(Bagmati_shp@data, wasteDEPOSIT, by= c ('DISTRICT' = 'dist_name'))
  head(Bagmati_shp)
  barplot(Bagmati_shp@data$WSHED, ylim=c(0,10000),names = Bagmati_shp@data$DISTRICT, xlab= 
  &quot;DISTRICT&quot;, ylab=&quot;Waste deposit&quot;, main=&quot;waste deposit in Bagmati provinance&quot;)
  </code></pre>