ggfan: Fanplots for ggplot2

Description Functions

Description

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.

Functions

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.


ggfan documentation built on May 2, 2019, 4:04 a.m.