Description Usage Arguments Details Value Author(s) References Examples
Create a hanging rootogram for a quantitative numeric vector and compare it to a Gaussian distribution.
1 2 3 4 5 6 |
x |
a numeric vector of values for which the rootogram is desired |
breaks |
Either the character string ‘Sturges’ to use Sturges' algorithm to decide the number of breaks or a positive integer that sets the number of breaks. |
type |
if |
scale |
The type of transformation. Defaults to |
zeroline |
logical; if |
linecol |
The color of the density line for the normal distribution. The default
is to make a |
rectcol |
a colour to be used to fill the bars. The default of |
xlab, ylab |
plot labels. The |
yaxt |
Should y axis text be printed. Defaults to |
ylim |
the range of y values with sensible defaults. |
mu |
the mean of the Gaussian distribution. Defaults to the sample mean of |
s |
the standard deivation of the Gaussian distribution. Defaults to the sample std.dev. of |
gap |
The distance between the rectangles in the histogram. |
... |
further arguments and graphical parameters passed to |
The mean and standard deviation of the Gaussian distribution are
calculated from the observed data unless the mu
and s
arguments are given.
Returns a vector of counts of each bar. This may be changed in the future. The plot is the primary output of the function.
Claus Ekstrom ekstrom@life.ku.dk
Tukey, J. W. 1972. Some Graphic and Semigraphic Displays. In Statistical Papers in Honor of George W. Snedecor, p. 293-316.
1 2 3 4 5 6 7 |
Warning messages:
1: In par(oldpar) : graphical parameter "cin" cannot be set
2: In par(oldpar) : graphical parameter "cra" cannot be set
3: In par(oldpar) : graphical parameter "csi" cannot be set
4: In par(oldpar) : graphical parameter "cxy" cannot be set
5: In par(oldpar) : graphical parameter "din" cannot be set
6: In par(oldpar) : graphical parameter "page" cannot be set
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.