ncn-foreigners / singleRcapture

Repository for single source capture-recapture models
https://ncn-foreigners.github.io/singleRcapture/
Other
4 stars 1 forks source link

rootograms #18

Closed BERENZ closed 2 years ago

BERENZ commented 2 years ago

Rootogram for distribution assessment, eg code from distributions3 presentation (source: https://www.zeileis.org/papers/useR-2022.pdf)

R> bp <- barplot(sqrt(observed), offset = sqrt(expected) - sqrt(observed),
+ xlab = "Goals", ylab = "sqrt(Frequency)")
R> lines(bp, sqrt(expected), type = "o", pch = 19, lwd = 2, col = 2)
R> abline(h = 0, lty = 2)
BERENZ commented 2 years ago

Solved by #19