stan-dev / stan-dev/bayesplot

ppc_curve_overlay()

Open
#201 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

We should have a plot like ppc_ribbon() but that plots the raw draws instead of computing interval summaries (like ppc_dens_overlay() but values not densities, and and x axis predictor or time variable).

So for example, ppc_curve_overlay(y, yrep, x) would plot nrow(yrep) overlaid regression lines (at least they are draws of the regression line if yrep is from posterior_linpred() instead of posterior_predict()).

We could call it ppc_line_overlay() but yrep doesn’t have to come from a linear model.

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 reading the existing ppc_ribbon() and ppc_dens_overlay() implementations and their related tests or examples. Define the new ppc_curve_overlay() entry point around y, yrep, and x, then verify that it overlays raw draws rather than interval summaries or densities, including draws from posterior_linpred() and posterior_predict().

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.