#' lightn function
#'
#' This function generates a transparent version of the given color
#' for plotting shaded areas
#' @param colo input color
#' @keywords color, transparent, shaded area
#' @export
#' @examples
#' lightn("orange") #transparent orange
#
lightn <- function(colo)
{
lcolo <- col2rgb(colo, alpha = F)
hexlcolo <- rgb(red = lcolo[1,1]/255, green = lcolo[2,1]/255, blue = lcolo[3,1]/255, alpha = 0.15)
return(hexlcolo)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.