A package to plot MCMC Chains using Makie.jl
Warning
This package is not yet registered and still work in progress. If you want to try it you will have to install it via Pkg.add(url="https://github.com/simonsteiger/ChainsMakie.jl")
.
ChainsMakie provides several plotting functions to visually diagnose MCMC Chains.
The plot
function provides the standard visualisation showing a traceplot
and a density
plot for each parameter.
using ChainsMakie, CairoMakie
import MCMCChains: Chains
chains = Chains(randn(300, 3, 4), [:A, :B, :C])
julia_quartet = [colorant"#4e63ae", colorant"#208921", colorant"#cc3333", colorant"#b352cc"]
plot(chains; color = julia_quartet, link_x = true)
ChainsMakie contains recipes for the following Chains
-specific plotting functions:
autocorplot
forestplot
meanplot
ridgeline
traceplot
trankplot
In addition, it extends the following existing Makie functions by adding a method for Chains
:
density
hist
plot
violin