Sayani07 / gghdr

Plots of highest density regions (HDR) for ggplot2
https://sayani07.github.io/gghdr/
GNU General Public License v3.0
47 stars 5 forks source link

Adding mode to geom_hdr_rug #11

Closed Sayani07 closed 2 years ago

sparce commented 4 years ago

Added as lines for consistency with geom_hdr_boxplot. I'm not convinced that a line is the right choice for the rug that sits up against the axes however. Maybe we should consider using a point for this instead?

ggplot(faithful, aes(y = eruptions, x = waiting)) + 
    geom_hdr_rug(sides = "trbl") + 
    geom_point() + 
    theme_bw()

rug

mitchelloharawild commented 4 years ago

I like the lines.

emitanaka commented 4 years ago

+1 to lines

mitchelloharawild commented 2 years ago

LGTM, closing as it has been added :tada: