TidyTemplate"

TidyTuesday

Join the R4DS Online Learning Community in the weekly #TidyTuesday event! Every week we post a raw dataset, a chart or article related to that dataset, and ask you to explore the data. While the dataset will be “tamed”, it will not always be tidy! As such you might need to apply various R for Data Science techniques to wrangle the data into a true tidy format. The goal of TidyTuesday is to apply your R skills, get feedback, explore other’s work, and connect with the greater #RStats community! As such we encourage everyone of all skills to participate!

knitr::opts_chunk$set(echo = TRUE)

library(tidyverse)
library(tidytuesdayR)

Load the weekly Data

Download the weekly data and make available in the tt object.

tt <- tt_load("{{{call_tuesday}}}")

Readme

Take a look at the readme for the weekly data to get insight on the dataset. This includes a data dictionary, source, and a link to an article on the data.

tt

Glimpse Data

Take an initial look at the format of the data available.

tt %>% 
  map(glimpse)

Wrangle

Explore the data and process it into a nice format for plotting! Access each dataset by name by using a dollarsign after the tt object and then the name of the data set.


Visualize

Using your processed dataset, create your unique visualization.


Save Image

Save your image for sharing. Be sure to use the #TidyTuesday hashtag in your post on twitter!

# This will save your most recent plot
ggsave(
  filename = "My TidyTuesday Plot.png",
  device = "png")


Try the tidytuesdayR package in your browser

Any scripts or data that you put into this service are public.

tidytuesdayR documentation built on Feb. 1, 2022, 9:07 a.m.