Friday, June 21, 2019

R Workshop - Patchwork and GGanimate

I attended a workshop yesterday.

In this session, the instructor walked us through some examples with the packages 'patchwork' and 'gganimate'.   I will just discuss patchwork here (at least for now).

Patchwork provides an easy grammar for setting up groups of plots, which is much easier than other methods.  Here's an example of placing three graphs ('bar', 'smooth' and 'box') in a desired layout:

Grouping & Nesting
If we have multiple plots, we may want to group them a certain way.


The source for patchwork is:  https://github.com/thomasp85/patchwork;



You will likely need to install the following packages:




  • ggrepel 
  • gapminder
  • gifski
  • transformr
  • patchwork


  • I will follow up later, discussing 'gganimate'.

    No comments:

    Post a Comment