data2hist | R Documentation |
From real data to distributionH.
data2hist( data, algo = "histogram", type = "combined", qua = 10, breaks = numeric(0), epsilon = 0.01 )
data |
a set of numeric values. |
algo |
(optional) a string. Default is "histogram", i.e. the function "histogram"
defined in the |
type |
(optional) a string. Default is "combined" and generates
a histogram having regularly spaced breaks (i.e., equi-width bins) and
irregularly spaced ones. The choice is done accordingly with the penalization method described in
|
qua |
a positive integer to provide if |
breaks |
a vector of values to provide if |
epsilon |
a number between 0 and 1 to provide if |
A distributionH
object, i.e. a distribution.
histogram
function
data <- rnorm(n = 1000, mean = 2, sd = 3) mydist <- data2hist(data) plot(mydist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.