Git Product home page Git Product logo

bingo's Introduction

Travis build status AppVeyor build status Codecov test coverage

bingo

Generate Bingo cards.

Currently has built-in squares for SuperBowl 50 🏈 and data / spreadsheet craziness 📉 and more. Or you can provide your own text for the squares.

Make printable Bingo cards without installing anything via this Shiny app:

Feel free to help us make these cards less ugly or to explore new bingo topics! PRs welcome 😁.

Installation

Install from GitHub with:

# install.packages("devtools")
devtools::install_github("jennybc/bingo")

SuperBowl Example

library(bingo)

## see some of the SuperBowl 50 squares
tail(get_topic("football"))
#> [1] "Shot of Golden Gate Bridge"                
#> [2] "\"Silicon Valley and tech\" blah blah blah"
#> [3] "Mike Carey is WRONG"                       
#> [4] "Unexpected artist joins Beyoncé"           
#> [5] "Cam's Superman shirt-opening thing"        
#> [6] "Idle speculation it's Peyton's last game"

## make 8 bingo cards
bc <- bingo(n_cards = 8, words = get_topic("football"))

## print them to PDF
plot(bc)
#> Writing to file ...
#>   ./bingo-01.pdf
#>   ./bingo-02.pdf
#>   ./bingo-03.pdf
#>   ./bingo-04.pdf
#>   ./bingo-05.pdf
#>   ./bingo-06.pdf
#>   ./bingo-07.pdf
#>   ./bingo-08.pdf

Here’s what one looks like:

“Open” and Bad Data Examples

We offer two sets of squares inspired by the pain joy of dealing with #otherpeoplesdata

Use get_topic("open-data") to get squares based on this tweet from Chris McDowall:

For two weeks I noted issues encountered as I used NZ govt data. Today I collected enough to make a bingo card. @fogonwater, January 3, 2016

Use get_topic("bad-data") to get squares inspired by the Quartz guide to bad data:

An exhaustive reference to problems seen in real-world data along with suggestions on how to resolve them…. Most of these problems can be solved. Some of them can’t be solved and that means you should not use the data. Others can’t be solved, but with precautions you can continue using the data.

## see some Open Data squares
tail(get_topic("open-data"))
#> [1] "PDF tables"                       "numbers formatted as text"       
#> [3] "metadata expressed as fieldnames" "fieldname EDA"                   
#> [5] "regex-driven workflow"            "named region non-sequiturs"

## see some Bad Data squares
tail(get_topic("bad-data"))
#> [1] "Data disguised as formatting"                  
#> [2] "Ambiguous American date formats, eg 03/04/16"  
#> [3] "\"Virgin Birth\", ie no provenance"            
#> [4] "Location of 0°N 0°E, ie \"Null Island\""       
#> [5] "Spelling mistakes that reek of hand-typed data"
#> [6] "US zip codes 12345 or 90210"

## make a single Open Data bingo card
## Note that "open-data" is the default topic, so you could alternatively use: bc <- bingo().
bc <- bingo(words = get_topic("open-data"))

## make a custom bingo blend from the open and bad data squares
bc <- bingo(words = c(get_topic("open-data"), get_topic("bad-data")))

## print it
plot(bc, pdf_base = "open-data-")
#> Writing to file ...
#>   ./open-data-01.pdf

Here’s an Open Data bingo card:

Run Shiny app locally

To run the app we’re running remotely on your own machine, do this:

launch()

bingo's People

Contributors

daattali avatar jennybc avatar amysheep avatar lmitchell4 avatar theresekoch avatar nkurzawa avatar mkosmicki avatar minnesotka avatar haleyhedlin avatar brittbarreto avatar anneae avatar almccombs avatar vfquirin avatar toshiyukibandai avatar srvanderplas avatar stephaniereinders avatar iqis avatar nikdata avatar abidawson avatar kwstat avatar jshukle avatar johnfrye avatar hlendway avatar giorgichi avatar gweinrott avatar davidbody avatar dshadravan avatar benjamincrary avatar ameliamn avatar amandaraeisu 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.