plotHD(x, HD = "over", nint = 20, digits = 2, stats = TRUE,
BoxCox = FALSE, col = c("lightgray", "black"), lwd = c(1, 1),
lty = "dashed", xlim, ylim, ...)
"over"
, to create a histogram superimposed by
the theoretical density plot of a normally distributed variable, and
"stack"
, to create a histogram annint = 20
.x
. Defaults to
digits = 2
.x
should be added to the plot. Available only when HD = "over"
.
The function tries to automatically find the best location to put the
descriptive statistics given the x
should be
transformed using the Box-Cox family of power transformations. The estimated
lambda value of the Box-Cox transform is printed in the console. It is set to
zero when negative. Defaults to B
col = c("lightgray", "black")
.lwd = c(1, 1)
.lty = "dashed"
.xlim
based on the density plot.ylim
based both histogram and density
plot."trellis"
. The
update.trellis
method can be used to update components
of the object and the print.trellis
print method
(usually called by default) will plot it on an appropriate plotting device.histogram
,
densityplot
, panel.mathdensity
,
powerTransform
and bcPower
to obtain
more details about the main functions used to built plotHD
.histogram
,
densityplot
, panel.mathdensity
,
powerTransform
, bcPower
.x <- rnorm(100, 10, 2)
plotHD(x, HD = "stack")
plotHD(x, HD = "over")
Run the code above in your browser using DataLab