Giter VIP home page Giter VIP logo

gapminder-imitation's Introduction

gapminder-imitation

Shiny web app that imitates the Gapminder bubble interactive animation.

Inspired by Gapminder's comprehensive data visualization tool, I created a Shiny web app that functions in a similar way. The app contains a slider that allows the user to choose a specific year to examine. The user is able to choose between a logarithmic or identity transformation of the data on either axis. The user is allowed to choose which variables to display on the X and Y axes. The user is also able to highlight certain countries.

bubbles-parametarized.R contains the code that modifies the data and plots a snapshot of the data shown in the shiny app. The following variables are placeholders. For example, in the shinyapp, input$xVar is an interactive variable that allows the user to choose between "mortality" "expectancy" "income" "population".

selectedYear <- 2002 #Choose a year from 1800-2018
xVar <- "mortality" #Pick one of: "mortality" "expectancy" "income" "population"
yVar <- "income"  #Pick one of: "mortality" "expectancy" "income" "population"
xLabel <- "Child Mortality\n(Number of 0-5 year olds died per 1000 births)" #Give appropriate label, suggestions: "Child Mortality\n(Number of 0-5 year olds died per 1000 births)", "Life Expectancy (in years)", ""GDP per Capita \n (inflation-adjusted)", "Population"
yLabel <- "GDP per Capita" #Give appropriate label, suggestions: "Child Mortality\n(Number of 0-5 year olds died per 1000 births)", "Life Expectancy (in years)", ""GDP per Capita \n (inflation-adjusted)", "Population"
xTrans <- "identity" #Pick one of "identity", "log2"
yTrans <- "log2" #Pick one of "identity", "log2"
xDollar <- F #Pick T or F
yDollar <- T #Pick T or F
countriesOfInterest <- c("India","United States","Nigeria") #name countries to highlight and label

gapminder-imitation's People

Contributors

cahyman avatar

Watchers

 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.