title: R leaflet adding colors for character variables
body: <p>I am attempting to create a Leaflet map in R, but the only thing I would like to add from now on are the colors for the circles that should differ per variable. In my data I have a column <code>Data.Type</code> that has approximately 5 different values in the dataset. What I would like is to have circles for these data points, in 5 different colors.</p>
  
  <pre><code>  output$map &lt;- renderLeaflet({
      leaflet() %&gt;%
        addTiles(
          urlTemplate = "//{s}.tiles.mapbox.com/v3/jcheng.map-5ebohr46/{z}/{x}/{y}.png"
        ) %&gt;%
        setView(lng = x, lat = x, zoom = 4)
  
      leaflet(getData()) %&gt;% addTiles() %&gt;%
        addCircles(lng = ~Longitude, lat = ~Latitude, weight = 1, radius=~Var, popup = ~Var, color=~Data.Type
        )
    })
  </code></pre>
  
  <p>Only this will return grey-ish circles only, not 5 different. How should this be done?</p>
  
  <p><strong>Edit: Data looks somewhat like this, actually it is more than 20.000 rows</strong></p>
  
  <pre><code>ID    Var    Var    Var   Data.Type
  0     99     2016   743    Type A
  1     99     2016   209    Type B
  2     99     2016   349    Type A
  3     99     2016   349    Type D
  4     99     2016   993    Type A
  5     99     2016   122    Type E
  6     99     2016   194    Type B
  7     99     2016   660    Type A
  8     99     2016   221    Type C
  ...
  </code></pre>
  
  <p><strong>The idea is to have a color for each var in Data.Type, which can only have approximately 6 different values</strong></p>