powered by
rug visualization for HDR plot
geom_hdr_rug( mapping = NULL, data = NULL, stat = "hdr", position = "identity", ..., na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, sides = "bl", rug_width = unit(0.03, "npc"), prob = c(0.5, 0.95, 0.99) )
Calculates and plots the rug plot of highest density regions.
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)
library(ggplot2) ggplot(faithful, aes(x = waiting, y = eruptions)) + geom_point() + geom_hdr_rug()
Run the code above in your browser using DataLab