TwMakieHelpers
TwMakieHelpers.TwMakieHelpers
— ModuleTwMakieHelpers
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.
TwMakieHelpers.density_dist
— Functiondensity_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 spreadprange = (0.025, 0.975)
: truncate x-axis to focus on main mass of the density
TwMakieHelpers.plot_chn
— Functionplot_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 chainsparam_label="Parameter estimate"
: x-axis label below lowest density plotparams = names(chns, :parameters)
: subset of parameters to plot