Use [vdiffr](https://github.com/r-lib/vdiffr) to add tests for graphical output. Seems to work nicely with base graphics and ggplot but less so with grobs.