R scripts for health research

Three free R scripts for the repetitive parts of a health-research analysis, so your time goes on the science.

Every script is tidyverse-first, and every function is commented so you can see what it does and adapt it to your own data.

Three scripts, each one commented end to end

Publication-ready ggplot2 themeA consistent theme and colour-blind-safe palette, applied to every plot with one line.
Grouped Table 1 generatorn, mean (SD) or median (IQR) and counts (%) by group, as a tidy tibble ready to export.
Sample-size and power helpersFor the three most common designs: two-group means, two proportions, and a correlation.

The R Starter Pack

Enter your email and I will send you the download link and a short note on what each script does.

Free to use in your own work. Please do not redistribute the scripts themselves.

Your email is used to send the pack, and for the occasional note only if you tick the box. No spam, unsubscribe any time. Privacy policy.

Common questions

Intended users

Health and clinical researchers, Doctor of Philosophy (PhD) students, and anyone who runs the same analysis steps over and over in R and wants a tested, commented starting point.

Installation and use

Unzip anywhere inside your project. Each script is standalone: source the ones you need, or copy the function straight into your analysis. Every script lists the packages it needs at the top.

Licence

Free to use in your own research and teaching, including funded projects. Please do not redistribute or resell the scripts themselves; send colleagues to this page instead.

Time saved

The scripts are written, tested and commented, so the afternoon you would have spent rebuilding a Table 1 function goes to your analysis.

Get the three scripts