Nothing
#' Determine a color vector based on probabilities
#'
#' \code{kmcolors} takes a probabilty vector and a color palette and
#' creates a color vector to be used with \code{kmhasse}.
#'
#' @param prob Probability vector
#' @param palette Color palette (default = cm.colors)
#'
#' @keywords math
#'
#' @importFrom grDevices cm.colors
#'
#' @export
kmcolors <- function(prob, palette=cm.colors) {
if (!requireNamespace("igraph", quietly = TRUE)) {
stop(sprintf("Plotting requires package 'igraph'."))
}
palette(1001)[1001-1000*prob]
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.