| contColor | R Documentation |
Encode colour for plotting a continuous variable
contColor(num, palette = matlab.like(100))
num |
a continuous variable |
palette |
a palette like terrain.color(n), ... |
JuG
x <- runif(n = 100, min = 1, max = 100)
plot(x,x,col= contColor(num = x))
plot(x,x,col= contColor(num = x, palette = terrain.colors(10)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.