Add colour scale to a figure. Adapted from code by Jonty Rougier.
1 |
legbreaks |
Set of legend breaks. |
leglabels |
Set of legend labels. |
col |
Set of colours. |
xlim |
X min, max for placement. |
ylim |
Y min, max for placement. |
cex |
Text size (optional). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.