ggfan: Fanplots for ggplot2

Description Functions


Implements the functionality of the fanplot package as ggplot geoms. Designed for summarising MCMC samples from a posterior distribution, where a visualisation is desired for several values of a continuous covariate. Increasing posterior intervals derived from the quantiles of the sampled quantity are mapped to a continuous colour scale.


The package contains three plotting functions.

geom_fan produces fan plots

geom_interval produces line plots, where pairs of lines represent intervals

stat_sample randomly plots a specified number of samples from the data

An additional function calc_quantiles computes relevant quantiles for a specified set of intervals.

jasonhilton/ggfan documentation built on Nov. 25, 2017, 11:49 p.m.