Description Usage Arguments Details Value Author(s) See Also Examples
This function computes the histogram parameters of the numeric input vector. The default for breaks is the value resulted from Sturges algorithm.
1 |
x |
The input numeric vector, matrix or data frame |
breaks |
The method or the number of classes for the histogram |
tojson |
If TRUE the results are returned in json format, default returns a list |
The possible values for breaks are Sturges see nclass.Sturges
,
Scott see nclass.scott
and FD or Freedman Diaconis nclass.FD
which are in package grDevices.
A list or json file with the following components:
cuts The boundaries of the histogram classes
density The density of each histogram class
normal.curve.x Abscissa of the normal curve
normal.curve.y Ordinate of the normal curve
fit.line.x Abscissa of the data density curve
fit.line.y Ordinate of the data density curve
mean The average value of the input vector
median The median value of the input data
Kleanthis Koupidis, Charalampos Bratsas
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.