Coder Social home page Coder Social logo

country-flags-explorer's Introduction

title author output
Country Flags Explorer - Help
by [Nicolás E. Kuzminski](http://www.linkedin.com/in/nekuz/)
html_document
keep_md
true

About

This application shows a choropleth map of the world countries coloured according to the colors of their flags. It was made as an R Language little project for the "Developing Data Products Course by Johns Hopkins" on Coursera, using Shiny web framework and Leaflet map visualization. The base world map is provided online by OpenStreetMap, the political land borders (polygons) are from Geo-Maps. I've published this project's source code on Github, which I've made freely available for anyone to use and modify for their own project.

Map

The map shows the world countries political land territories coloured by their national flags. It can be navigated the usual way, with the mouse cursor or the arrow keys. Also can be zoom in or out with the minus and plus control shown over the left top of the map, or using the mouse wheel if it has one. When hovering with the mouse cursor over the colored countries, a popup will be shown with the country name, an image of its flag, the numeric value of its population in millions, and its area in thousands square kilometers. Bear in mind that the Flags source dataset dates from 1986, so the data my differ with images, even some countries doesn't match with the current political map (ie, the Soviet Union) so they aren't shown at all.

Controls

Flag Features Filter

Check the boxes to display flag color and data only for the countries having the corresponding shape feature on its flag:

  • Vertical bars
  • Horizontal stripes
  • Circles
  • Upright crosses
  • Saltires (Diagonal crosses)
  • Quarters (Quartered Sections)
  • Sunstars (Sun or star symbols)
  • Crescent moon symbol
  • Triangles
  • Icon (Inanimate image)
  • Animate icon (e.g., an eagle, a tree, a human hand)
  • Text (e.g., a motto or slogan)

Country Statistics Filter

Use the sliders to display flag color and data only for the countries being in the selected ranges, selecting the minimum and maximum values to filter:

  • By Area territory in thousand square kilometers
  • By Population inhabitants in millions

Flag Color Shown

Use these radio buttons to select that the flag colors shown on the map corresponds to the color:

  • Predominant in Flag (Tie-breaks decided by taking the topmost hue, if that fails then the most central hue, and if that fails the leftmost hue)
  • In Top Left Corner (moving right to decide tie-breaks)
  • In Bottom Right Corner (moving left to decide tie-breaks)

Final Words

You can use and copy this application freely. Just don't forget to recognize the involved sources and authors, like me. Have fun as much as I did!

Nicolás E. Kuzminski

country-flags-explorer's People

Contributors

nicokuz avatar

Stargazers

 avatar

Watchers

James Cloos 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.