depictr.posterior_plot#

depictr.posterior_plot(draws, labels=None, title=None)#

Forest plot of posterior (or bootstrap) draws.

Each parameter is one row: the median as a point, a thick inner band for the central 66% credible interval and a thin outer band for the central 95%. The first parameter reads at the top.

Parameters:
  • draws (pandas.DataFrame or dict of array-like) – The draws, one column (or dict entry) per parameter. A dict maps a parameter name to a 1-D array of draws; the arrays may differ in length.

  • labels (dict, optional) – Remap raw parameter names to display names, {raw: shown}. Names not in the mapping are left unchanged.

  • title (str, optional) – Plot title.

Return type:

plotnine.ggplot