View source: R/get_optimal_binwidth.R
get_optimal_binwidth | R Documentation |
Calculate the optimal binwidths for histograms based on several methods
get_optimal_binwidth(data, method = c("FDR", "SNRR", "SF", "RR", "DF"))
data |
A numeric vector that is used to construct histograms |
method |
Which method should be used to get the optimal binwidths. Valid inputs are |
A value that represents the optimal binwidth based on data and chosen method
get_optimal_binwidth(rnorm(100), method = "SF")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.