title: Creating a map plot in R using plot_usmap package
body: <p>I have a dataset containing different states, zip codes, and claim counts each in separate columns. I am trying to create a plot to show the total claim count according to zip codes for the state of MA. </p>
  
  <p>Dataset: 
  <a href="https://i.stack.imgur.com/FmF8c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FmF8c.png" alt="enter image description here"></a></p>
  
  <p>I used this to filter by MA:</p>
  
  <pre><code>MA_medicare &lt;- medicare %&gt;%
    filter(medicare$NPPES.Provider.State == "MA")
  </code></pre>
  
  <p>I then used this to set the fips code for plot_usmap:</p>
  
  <pre><code>MA_medicare$NPPES.Provider.State &lt;- fips(MA_medicare$NPPES.Provider.State)
  setnames(MA_medicare, old=c("NPPES.Provider.State"), new=c("fips"))
  </code></pre>
  
  <p>And last tried to graph (not sure why this doesn't work):</p>
  
  <pre><code>plot_usmap(data = MA_medicare, values= c("Total.Claim.Count", "NPPES.Provider.Zip.Code"), include = c("MA")) + scale_fill_continuous(low= "white", high= "red") + theme(legend.position = "right") 
  </code></pre>
  
  <p>Error: Aesthetics must be either length 1 or the same as the data (4350838): fill</p>