I have a hex code color table ("my_table"), as follows:
V1 V2
1 #010000 #080000
2 #140004 #000000
3 #000000 #080000
4 #040000 #110000
5 #050000 #080004
6 #030000 #030000
7 #090000 #0B0000
8 #3A0010 #2D000D
9 #000000 #000000
I'd like to plot is as a heatmap in R, displaying these colors in my plot. I tried:
grid.raster(my_table, interpolate=FALSE)
and it worked, but I'd also want the heatmap to have labels, a legend, etc. so I thought I'd use a function with more options, like ggplot to plot my heatmaps. I can't find any way to plot this hex code matrix as colors with ggplot, does anyone know a solution?
