Column with color values in tmap
<p>I have a SpatialPolygonsDataFrame with columns containing hex-color values. I want to draw the map like this with the package tmap:</p>

<pre><code>tm_shape(full.shp) + tm_fill(col="konf1900")
</code></pre>

<p>But then it is treated as categorial variable, resulting in this:
<img src="https://cloud.githubusercontent.com/assets/9657746/19884917/4031df96-a01c-11e6-86dd-63e8f41c1706.png" alt="screenshot 2016-11-01 10 15 53"></p>

<p>I am not sure how to tell tmap that it should plot the color values directly on the map...</p>

<p>Can anyone help on this?</p>

<p><em>edit:</em> 
see the answers below - the problem was that the dataframe column was no encoded <code>as.character</code>. I think this might help someone sometime...</p>