Usage Arguments Author(s) Examples
1 | gradient_legend(labels, color_palette, cex=0.7, lab_shift=0.5)
|
labels |
Labels of the legend. Must be provided suitable to the colors used in the image, i.e. min and max must be the same. |
color_palette |
Color palette used in the plot. |
Klara Dolos
1 2 3 | layout(matrix(1:2, nrow=1), widths=c(0.8,0.2))
image(matrix(1:100, nrow=10), col=heat.colors(20))
gradient_legend(labels=round(seq(1,100, len=6)), color_palette=heat.colors(6), cex=1, lab_shift=0.45)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.