check_id <- function(x, id) {
if (id < 1) stop("id is negative")
if (id > length(x)) stop("id exceeds the number of colors -", length(x))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.