Draw a simple colorbar from colors.
vector of colors, no special ordering is assumed
logical, whether the colorbar should be plotted horizontally (or vertically).
This function assumes that there is an open plot, use
plot.new() to create one before calling this function if that is not the case.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.