Nothing
#' # private functions
#' @param x numeric vector to be plotted
#' @noRd
.optimalNumberOfBinsForHist <- function(x) {
# Compute the optimal number of bins for a histogram.
x.range.length <- diff(range(x))
sd.x <- stats::sd(x)
num.samples <- length(x)
num.bins <- ceiling(x.range.length/(3.96 * sd.x * num.samples^(-1/3)))
# num.bins <- nclass.FD(x)
return(num.bins)
}
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.