rug visualization for HDR plot
Default: NULL
data
stat
Default: "identity"
...
Default: FALSE
Default: NA
Default: TRUE
position to put rugs
width of rugs, Default: unit(0.03, "npc")
PARAM_DESCRIPTION, Default: c(0.5, 0.95, 0.99)
Calculates and plots the rug plot of highest density regions.
library(ggplot2)
ggplot(faithful, aes(x = waiting, y = eruptions)) +
geom_point() +
geom_hdr_rug()