Skip to content

Improvements to plotFit()#16

Merged
danheck merged 4 commits intodanheck:masterfrom
mariusbarth:master
Feb 12, 2026
Merged

Improvements to plotFit()#16
danheck merged 4 commits intodanheck:masterfrom
mariusbarth:master

Conversation

@mariusbarth
Copy link
Contributor

Hi @danheck,

This PR adds support for for posterior predictive standard deviation (stat = "sd") and correlation (stat = "cor") plots in plotFit().

I implemented these additional plots because the covariance plots can quickly become unwieldy, and I observed, in some use cases, that these plots were dominated by variances (making co-variances hard to discriminate from zero).

(I think) I also fixed the placement of separator lines for covariance plots. Here is the new behavior, where the lines separate each column of the lower triangle of the covariance matrix.

grafik

I could not make sense of the old behavior here:

grafik

There is also a tiny change in PPP.R. This change is unrelated, but harmless. It does the same as the old function, but is faster (magnitude 2x). If you want to go one step further, you could use asplit(), but this comes with a dependency (R>=4.1.0).

If you have any questions or suggestions, feel free to ask.

Best,
Marius

@danheck danheck merged commit 28b14f0 into danheck:master Feb 12, 2026
2 checks passed
@danheck
Copy link
Owner

danheck commented Feb 12, 2026

@mariusbarth That's great, thanks a lot!

A plot of estimated correlations is certainly useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants