ggfan: Fanplots for ggplot2

ggfanR Documentation

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.

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.


jasonhilton/ggfan documentation built on Sept. 17, 2023, 5:47 a.m.