Creating publication-worthy figures in R

A popular question I am asked is: “How can I use R to create figures for my thesis and/ or publications?” I used R to create figures for my (now submitted!) PhD thesis and a recent publication in Journal of Sports Sciences. The code below will give you high-resolution figures that you can also use in your own scientific work! First, create a dummy dataset so we can get plotting: