1 Introduction
This book is a single source of recipes for the exhibits that go into HVTI CORR publications and presentations: the figures, drawn with ggplot2 Wickham (2009), and the tables that travel with them. Start with the question in front of you, not a package name. The routes below put a working recipe within reach before you need to remember which package supplies it.
| If you need to… | Start with… |
|---|---|
| install or update the HVTI R family | Packages |
| describe who is in the cohort | Describing a dataset |
| choose a distribution or relationship figure | Describe the cohort |
| show time until an event | Time-to-event figures |
| explain a forest prediction | Predictive-model graphics |
| prepare a manuscript figure or table | Finish and deliver |
If you take one thing from this book, take the shape of the workflow: construct, plot, decorate, save. An hv_*() constructor does the analysis and hands you a bare ggplot. You add scales, labels, and a theme. You save it for wherever it is going. The figure’s content is decided once and its appearance as many times as you have audiences, and because every recipe makes its own data, you can always go back to a working example and adapt it. A table is built the same way, a summary object first and a renderer second, so the shape carries over even though the functions do not.