color_map_Spectral | R Documentation |
color_map_Spectral
maps numeric values between 0 and 1 to hex codes
color_map_Spectral(x, name = "Spectral")
x |
A numeric vector whose entries are between 0 and 1. |
name |
Name of the color palette. Default is Spectral. |
A vector of hex codes.
color_map_Spectral((1:5)/5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.