I wanted to check how some plots were done in R in Stan documentation, but I found this:
After running this for enough iterations so that the effective sample
size is larger than M, then thinning to M draws (here M = 999),
the ranks are computed and binned, and then plotted.
knitr::include_graphics("./img/sbc-normal-normal.png", auto_pdf = TRUE)
Where can I find the code that generates that png? maybe @mitzimorris knows?