TwMakieHelpers

TwMakieHelpers.TwMakieHelpersModule

TwMakieHelpers

Stable Dev Build Status Coverage

Provides customized Makie-Plots for several types.

  • Density plots of Distributions
  • Trace- and density plots for AbstractMCMC chains

Functionality is implemented in Package extensions. The base package only defines empty functions.

source
TwMakieHelpers.density_distFunction
density_dist(d::UnivariateDistribution; ...)
density_dist!(ax, d::UnivariateDistribution; ...)

Plot density of univariate distribution, d. The first variant produced a figure. The second plots into given Axis.

Keyword arguments

  • normalize = false: to scale y-axis to 1 for comparing densities with different spread
  • prange = (0.025, 0.975): truncate x-axis to focus on main mass of the density
source
TwMakieHelpers.plot_chnFunction
plot_chn(fchns::AbstractMCMC.AbstractChains; ... )
plot_chn!(fig::Figure, chns::AbstractMCMC.AbstractChains; ... )

Plot MCMCChain lines and density. The first variant produces a figure, the second variant plots into a matrix-grid of axes into given figure.

Keyword arguments

  • linkaxes=false: link x-axis across density plots of several chains
  • param_label="Parameter estimate": x-axis label below lowest density plot
  • params = names(chns, :parameters): subset of parameters to plot
source