ggfan (version 0.1.0)

ggfan: Fanplots for ggplot2

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.

Arguments

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.