Learn R Programming

gghdr (version 0.2.0)

Visualisation of Highest Density Regions in 'ggplot2'

Description

Provides 'ggplot2' framework for visualising Highest Density Regions (HDR) . This work is based on the package 'hdrcde' and displays highest density regions in 'ggplot2' for one and two dimensions and univariate densities conditional on one covariate.

Copy Link

Version

Install

install.packages('gghdr')

Monthly Downloads

21

Version

0.2.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Sayani Gupta

Last Published

October 27th, 2022

Functions in gghdr (0.2.0)

stat_hdrcde

Stat for hdrcde
stat_hdr

Stat for hdr box and rug plot
lane2

Example dataframe for gghdr
scale_prob

Probability colour scales
hdr_bin

Binning highest density regions in one or two dimensions
guide_prob

Probability shade bar guide
guide_train.prob_guide

Helper methods for guides
StatHdr

stat_hdr
draw_key_hdr_boxplot

Draw legend key
geom_hdr_boxplot

Box plot for the highest density region
geom_hdr_rug

Rug plot for the highest density region
gghdr-package

gghdr: Visualisation of Highest Density Regions in 'ggplot2'
GeomHdrRug

GeomHdrRug
GeomHdrBoxplot

GeomHdrBoxplot
StatHdrcde

StatHdrcde
faithful

Example dataframe for gghdr