stan-dev / stan-dev/bayesplot

Suggestion, heatmap to show pairwise correlations #feature #new_plot

Open
#130 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
R
Stars
442
Forks
93
Avg merge
3h 11m
Merged PRs (30d)
1

Description

Hi bayesplot team,
Thank you for making a brilliant and very usable package. The mcmc_scatter plot is very useful for visualizing the correlations between two known parameters. However it is not useful at visualizing which parameters are correlated in general. mcmc_pairs will do this in detail, but is hard to implement and prohibitively slow for more than a dozen or so paramters.

I suggest a heatmap of correlations: first, calculate pairwise correlations between (a subset of) parameters; second, plot a heatmap using geom_tile with the correlations as fill. That would be a quick visual cue to what is correlated with what.

Please accept my apologies if this was already discussed.
Edward

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing mcmc_scatter and mcmc_pairs plotting paths to understand how parameter inputs and correlations are handled. The issue is complete when a heatmap using geom_tile provides a visual cue for pairwise correlations across a selected subset of parameters, with behavior and scope settled for larger parameter sets.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.