On many of my images thus far, I have been using the viridis colour palette - Option G (or Mako).
I've been using functions to select from the palette, such as scale_fill_viridis_d(option = "G")
.
However, I'd like to sample from this palette and therefore I'd like to identify the underlying colour codes.
Could anyone tell me how to identify the codes characterising Mako/Option G. So far, the function below has not worked.
Would appreciate all help.
#NOT WORKED.
#I TRIED EXPANDING PARAMETER VALUES/CHANGING 'VIRIDIS' FUNCTION. YET, NO SUCCESS.
library(viridis)
library(scales)
show_col(viridis_pal()(12))
Try:
Example: