Skip to content

ppc ribbon with points for observations #256

@charlesm93

Description

@charlesm93

Per the discussion on https://discourse.mc-stan.org/t/bayesplot-ppc-ribbon-using-points-for-observations/19599, it'd be nice to have a ppc plot which uses a ribbon for the model predictions but points for the observations.

I propose adding an argument to the function ppc_ribbon and ppc_ribbon_grouped, namely y_is_point which defaults to FALSE (so as to not break backward compatibility). So the signature would be

ppc_ribbon(
  y,
  yrep,
  x = NULL,
  ...,
  prob = 0.5,
  prob_outer = 0.9,
  alpha = 0.33,
  size = 0.25,
  y_is_point = FALSE
)

I can build this feature in.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions