Skip to content

spren9er/tidytuesday

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8563565 · Nov 2, 2022

History

62 Commits
Nov 2, 2022
Mar 31, 2021
Sep 19, 2020
Oct 25, 2020
Apr 20, 2019
Apr 20, 2019
Apr 20, 2019
Apr 20, 2019
Apr 22, 2019
Apr 30, 2019
May 15, 2019
May 23, 2019
May 30, 2019
Jun 15, 2019
Jul 8, 2019
Aug 11, 2019
Sep 22, 2019
Sep 30, 2019
Sep 30, 2019
Sep 30, 2019
Oct 2, 2019
Nov 8, 2019
Nov 19, 2019
Nov 22, 2019
Jan 26, 2020
Feb 1, 2020
Apr 19, 2020
Aug 5, 2020
Aug 5, 2020
Sep 19, 2020
Mar 31, 2021
Nov 2, 2022

Repository files navigation

#TidyTuesday

What is it all about?

Excerpt from the official tidytuesday project on GitHub:

The #tidytuesday project is a weekly data project aimed at the R ecosystem. An emphasis will be placed on understanding how to summarize and arrange data to make meaningful charts with ggplot2, tidyr, dplyr, and other tools in the tidyverse ecosystem.

Code

This repository is a collection of some code snippets used for wrangling, aggregating and visualizing data with tidyverse to create a meaningful insight about the underlying weekly data sets.

Important Sometimes, code is minimalized and its focus is to show how data is prepared, aggregated and visualized (without distraction of styling and modifying theme, fonts, etc.) and charts in the images folder are created with the code shown here with additional theme modifications.

Animations

In order to submit an animation to twitter, one has to convert it to a gif or movie file. On twitter, gif files look often better than movie files. Additionally, one can pause animation by tapping on gif animation.

For detailed twitter specifications on image and movie files, see here.

Installation

Install ffmpeg and gifski, e.g. in macOS via brew

brew install ffmpeg
brew install gifski

Video file conversion (to .gif)

In order to get a high resolution gif file, use gifski. On macOS:

ffmpeg -y -i input.mov -vf "setpts=0.5*PTS" frames/frame%04d.png
gifski -o output.gif frames/frame*.png

Change fps and width

gifski --fps 1 -W 1080 -o output.gif frames/frame*.png

Video file conversion (to .mp4)

ffmpeg -y -i input.mov -vf "setpts=0.5*PTS,scale=-1:1080" -r 40000/1001 output.mp4

About

Code snippets for weekly #tidytuesday project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published