col_to_int | R Documentation |
Packed RGBA values are used in R's native raster objects.
col_to_int(col)
col |
Character vector of color names. Supports all R color names (e.g. "red", "hotpink") and hex colors of the form: "#RRGGBBAA", "#RRGGBB", "#RGBA" and "#RGB". |
Integer vector where the 4 bytes making up each integer represent the RGBA values of the color
col_to_int(c("hotpink", "#abc", "#abcd", "#aabb99", "#aabb9980"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.