I created a heatmap in R which is n*k in size, is it possible to extract the individual colors used for an ith element?
For example n=3 (columns) and k=50 (rows), n is an arbitrary level of severity and k represents a district in the UK.
I have the polygons for these districts and I want to create 3 separate maps based on the severity using the same colors from the overall heatmap as the fill for the polygons for consistency.
Thanks, Alan