Git Product home page Git Product logo

tidy-tuesday's Introduction

Tidy Tuesday

Is a collection of my submissions to #TidyTuesday from Twitter. For more information about #TidyTuesday see their GitHub repo or see the latest postings on Twitter.

Packages

These are the packages I find very useful in developing my charts:

  • tidyverse - data manipulation and plotting
  • tidytuesday - importing the TidyTuesday data sets
  • glue - joining strings and more
  • scales - formatting axis and labels
  • showtext - importing and customizing fonts
  • ggtext - better text rendering
  • cowplot - combining plots and simply themes
  • waffle - making waffle plots

Look & Feel

Font

Two fonts families are predominately used: Lato and Merriweather. Lato is a san-serif font that is in the title and Merriweather is a serif font used in all other typography. Both are Google fonts. The textual chart components are sized based on their importance and to not distract from the data-encoding objects in the charts.

Alignment

The title, subtitle, legend, and caption (source and notes) are left aligned. Furthermore, all text should horizontal. For the y-axis' title, it should not be used and the axis will be descirbed in the subtitle.

My font style can be applied with:

library(showtext)
library(tidyverse)

font_add_google("Lato", "Lato")
font_add_google("Merriweather", "Merriweather")
showtext_auto()

# WIP
theme(
    text = element_text(family = "Merriweather", size = 12),
    plot.title = element_text(family = "Lato", size = rel(1.5)),
    plot.subtitle = element_text(size = rel(1.25)),
    axis.text = element_text(size = rel(0.875)),
    legend.text = element_text(size = rel(0.875)),
  )

The default font size is 12 points, which is ideal for charts smaller than 5 inches wide. For wider fonts, up to 8 inches, use 14 points.

Colors

(WIP)

Submissions

January

Week 4

Avocados From Kenya

February

March

Week 10

Sex No Longer Sells

Week 11

Bechdel Test

Week 12

Online Gaming

Week 13

UN Resolutions

April

May

Week 19

Water Access Points

Week 20

Inaccessiblilty broadband

June

Week 26

Park Access

Week 27

London Fire

tidy-tuesday's People

Contributors

jesadrperez avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.