I have a map defined by polygons in a shape file that I have read into R. Each polygon has a character value assigned to it in a column called "UNIT_250K", and each of those character values has it's own RGB values provided in 3 columns called "RED", "GREEN", and "BLUE". I need to color the polygons using the RGB values but my attempts to do so aren't working.
This is what I tried:
tm_shape(YGS_GLGY) +
tm_polygons(fill = rgb(red = "RED", green = "GREEN", blue = "BLUE")) +
tm_borders()
