Nothing
#' Get density
#'
#' The function formats the density distribution from the histogram function
#'
#' @param hist histogram
#'
#' @return array
#'
#' @keywords histogram
#' plot
#'
#' @examples
#' x <- runif(1000)
#' density <- get_density( hist(x, plot=FALSE))
#'
#' @export
#'
get_density <- function(hist) {
x = sort(rep(hist$breaks, 2))
y = matrix(rbind(hist$density, hist$density))
y = c(0, y, 0)
return(cbind(x, y))
}
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.