powered by
Plots highest density regions continuously over some conditioned variable.
# S3 method for hdrcde plot( x, plot.modes = TRUE, mden, threshold = 0.05, xlim, ylim, xlab, ylab, border = TRUE, font = 1, cex = 1, ... )
None.
Output from hdr.cde().
hdr.cde()
Should modes be plotted as well as HDRs?
Marginal density in the x direction. When small, the HDRs won't be plotted. Default is uniform so all HDRs are plotted.
x
Threshold for margin density. HDRs are not plotted if the margin density mden is lower than this value.
mden
Limits for x-axis.
Limits for y-axis.
Label for x-axis.
Label for y-axis.
Show border of polygons
Font to be used in plot.
Size of characters.
Other arguments passed to plotting functions.
Rob J Hyndman
Hyndman, R.J., Bashtannyk, D.M. and Grunwald, G.K. (1996) "Estimating and visualizing conditional densities". Journal of Computational and Graphical Statistics, 5, 315-336.
hdr.cde(), cde(),
cde()
faithful.cde <- cde(faithful$waiting, faithful$eruptions) faithful.hdr <- hdr.cde(faithful.cde, prob = c(0.50, 0.95), plot = FALSE) plot(faithful.hdr, xlab = "Waiting time", ylab = "Duration time")
Run the code above in your browser using DataLab