Making interactive animations with ggplotly
frame
aesthetic in ggplotly()
for easy animations
I’ve recently been making a lot of plotly
graphs for my Icelandic website metill.is, where I look at official data on current topics. Since it is so simple to make animations with ggplotly
I thought I might write a short tutorial on it.
Fetching FTP data from the Ceda Archives
For my PhD modeling I needed to fetch a large amount of data from the CEDA Archive, specifically I use hourly precipitation projections from UKCP Local Projections on a 5km grid over the UK for 1980-2080. The hourly precipitation projections are stored in 720 files that are all approximately 120mb to 130mb. Here I write out my processing in case someone needs help with doing something similar.
Forest Plots with Built-In Tables
I’ve seen this kind of figure poking around, but I didn’t really think about them until the other day I was asked about how to make one in R. Here I will walk through making one of these plots using the ggplot2
and cowplot
packages.