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

Add hdr_bin() to convert a continuous variable into discrete hdr areas #4

Closed mitchelloharawild closed 4 years ago

mitchelloharawild commented 4 years ago

Used to create the coloured scatterplot.

ggplot(data, aes(x, y, colour = hdr_bin(x, y)) + 
  geom_point()

This may also need to support multivariate high density regions.

mitchelloharawild commented 4 years ago
hdr_bin <- function(x, y, prob, ...){

}
Sayani07 commented 4 years ago

Done