I think I have more or less got this right now:
This is also now available on git: https://github.com/mcmenaminadrian/Paging
This was also helpful in explaining how the curves work.
And of course this – The LATEX Graphics Companion – was also essential.
Copyright (c) Adrian McMenamin, 2011, reuse licensed under the CC0 Licence.
- Getting Started with Git, EGit, Eclipse, and GitHub: Version Control for R Projects (r-bloggers.com)