Flag Quiz

Paul van der Kooy
8 October 2016

A Shiny application to test your knowledge of flags around the world

Assignment for the Building Data Products module of the Data Sciences Specialisation

Introduction & Objectives

  • Some form of input (widget: text-box, radio button, check-box, …)
  • Some operation on the UI input in server.R
  • Some reactive output displayed as a result of server calculations
  • Enough documentation so that a novice user could use your application.
  • Publish on Shiny website itself

Extra objectives that were included

  • Read and use data from open/public source
  • Develop a complex reactivity to run a configurable quiz
  • Use graphics as part of the interactive design

Data source

This application make use of the open country data information from http://www.geonames.org/. It utilizes the country index and the flag repository.

Example: plot of chunk unnamed-chunk-1

Application Manual

The application is straight forwards and self-explanatory. The user is asked to enter a number of questions he or she likes to answer and a level of difficulty. After confirmation the application presents a number of national flags, which the users has to identify by means of multiple choice questions. Finally, the score is maintained and presented back to the user.

See the screendump of the App or try it yourself:

https://paulkooy.shinyapps.io/FlagQuiz/

plot of chunk unnamed-chunk-2

Issues & Regrets

Due to time constraints not all functionality intended has been included.

  • The reactivity of the application can be improved
  • Collecting statistics from all users and present individual score against the score distribution of the population was not yet realised
  • The application was intended to also include Hints