Earlier today, Mara Averick shared news of Claus Wilke’s cowplot package (link). Claus has an introduction to the new features of cowplot (link) and a more detailed set of all vignettes (link).
Whenever Mara shares anything that might add to work in sport, I try to work through the package or process she shares.
I have done this with cowplot today and have created a very basic GitHub repository to support this exploration of the cowplot package (link). I have used a very brief example from the 2019 NRL season. I use Elo rating points as the basis of what I do here (link).
My csv file has four data points for one team: the highest Elo points recorded thus far; the median for this team this season; the lowest points recorded; and the current week (week 19).
My cowplots included the following worked examples:
![](https://i0.wp.com/keithlyons.me/wp-content/uploads/2019/07/C.jpeg?resize=581%2C394&ssl=1)
![](https://i0.wp.com/keithlyons.me/wp-content/uploads/2019/07/M.jpeg?resize=581%2C394&ssl=1)
![](https://i0.wp.com/keithlyons.me/wp-content/uploads/2019/07/PG.jpeg?resize=581%2C394&ssl=1)
The inclusion of a cowplot logo:
![](https://i0.wp.com/keithlyons.me/wp-content/uploads/2019/07/CT.jpeg?resize=581%2C394&ssl=1)
![](https://i0.wp.com/keithlyons.me/wp-content/uploads/2019/07/2R.jpeg?resize=581%2C394&ssl=1)
Changed Width of Side-By-Side Plots:
![](https://i0.wp.com/keithlyons.me/wp-content/uploads/2019/07/CWP.jpeg?resize=581%2C366&ssl=1)
Two plots with a shared title:
![](https://i0.wp.com/keithlyons.me/wp-content/uploads/2019/07/2one.jpeg?resize=581%2C366&ssl=1)
I find it really helpful to work through examples in R Studio whenever possible. I am looking forward to exploring more of cowplot and Claus’s extremely helpful vignettes. I do see a lot of use of this package in my own work.