rootonorm(x, breaks = "Sturges", type = c("hanging", "deviation"),
scale = c("sqrt", "raw"), zeroline = TRUE,
linecol = "red", rectcol = "lightgrey",
xlab = xname, ylab = "Sqrt(frequency)",
yaxt = "n", ylim = NULL,
mu = mean(x), s = sd(x), gap = 0.1, ...)
"hanging"
then a hanging rootogram is plotted, and if
"deviation"
then deviations from zero are plotted."sqrt"
which takes
square roots of the frequencies. "raw"
yields untransformed
frequencies.TRUE
a horizontal line is added at zero.red
density line.lightgray
yields lightgray bars.xlab
and ylab
refer to the x
and y axes respectivelyn
.x
.x
.plot
.mu
and s
arguments are given.oldpar <- par()
par(mfrow=c(2,2))
rootonorm(rnorm(200))
rootonorm(rnorm(200), type="deviation", scale="raw")
rootonorm(rnorm(200), mu=1)
rootonorm(rexp(200), mu=1)
par(oldpar)
Run the code above in your browser using DataLab