validManipulate <- function(low, up) {
if(low < 2) {stop("the smallest number of clusters can be 2.")}
manipulate(validPlot(low = low, up = up), low = slider(low, up, step = 1, initial = low), up = slider(low, up, step = 1, initial = up))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.