color | R Documentation |
color
vectorTurn vector of colors to color
vector
color(col)
colour(col)
col |
A |
Alpha values will be automatically added to hexcodes. If no alpha
value is present in col
, it will default to no alpha (FF).
A colors
object of the same length as col
. Returns hex 8 digits
form "#rrggbbaa". See Details.
terrain_10 <- color(terrain.colors(10))
terrain_10[1:4]
plot(terrain_10)
plot(terrain_10, labels = TRUE)
grey_10 <- color(gray.colors(10, start = 0, end = 1))
grey_10
plot(grey_10, labels = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.