title: Changing color Axis in Highchart Choropleth
body: <p>I'm fairly new to visualizing maps on R and I'm trying to change the legends in a motion choropleth. <br>
  My code is as under</p>
  
  <pre><code>ds &lt;- a21 %&gt;% 
    group_by(fips) %&gt;% 
    do(item = list(
      fips = first(.$fips),
      sequence = .$freq,
      value = first(.$freq))) %&gt;% 
    .$item
  
  hc &lt;- highchart(type = "map") %&gt;% 
    hc_add_series(data = ds,
                  name = "complaints",
                  mapData = uscountygeojson,
                  joinBy = "fips",
                  borderWidth = 0.01) %&gt;% 
    hc_colorAxis(stops = color_stops()) %&gt;%  
    hc_title(text = "patient complaints") %&gt;% 
    hc_legend(layout = "vertical", reversed = TRUE,
              floating = TRUE, align = "right") %&gt;% 
    hc_add_theme(hc_theme_smpl()) %&gt;% 
    hc_motion(
      enabled = TRUE,
      axisLabel = "year",
      labels = sort(unique(a21$year)),
      series = 0,
      updateIterval = 50,
      magnet = list(
        round = "floor",
        step = 0.1
      )
    )
  </code></pre>
  
  <p>Screenshot of the existing result:</p>
  
  <p><img src="https://i.stack.imgur.com/tmkQw.png" alt="enter image description here"></p>
  
  <p>As of now I see R automatically creates colorbins of frequencies</p>
  
  <p>I wish to change this to a set of custom values in my dataframe.</p>
  
  <p>A snippet of my dataframe is as under</p>
  
  <pre><code>a21:
  
        year  fips   freq            q
  1     2004  1001      3 1st Quantile
  2     2005  1001      0 1st Quantile
  3     2006  1001      4 1st Quantile
  4     2007  1001      0 1st Quantile
  5     2008  1001      0 1st Quantile
  6     2009  1001      0 1st Quantile
  </code></pre>
  
  <p>I want the column q as color axis labels</p>