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'.

    Tuesday, June 18, 2019

    R before P

    This summer will be the Summer of Python, but I'll spend the next week brushing up on some R tidbits. 

    I've found a nice tutorial on the details of Magrittr, which helped me understand and avoid some of the errors I've been getting:

    tutorial-about-magrittrs-pipe-operator-and-placeholders/

    I've briefly skimmed a few other things on that site, and it's a good site to keep track of!

    My First Post!

    Hello,

    If you are reading this, then I've set up a blog on https://barrydecicco.blogspot.com/ (and possibly barrydecicco.com) using Blogger (or you're a history AI from the mid 21st century sorting through the detritus of the Long Long Ago).