Git Product home page Git Product logo

dataton2014's Introduction

Crowd flow analyzer in the Zapopan municipality

In this project we develop a crowd flow analyzer based on the localized publications on Twitter and Foursquare of people throughout the Zapopan, Guadalajara, Tlaquepaque and Tlajomulco municipalities.

This project was mainly coded on R for the data processing. We used both Shiny and rMaps to show some interesting interactive results. Basically rMaps is still under development and it still doesn't have very good compatibility with the html output support from Shiny.

The wrapper of Datamaps in rMaps library still doesn't have a stable option to include bubbles on a map. That's why in one step of the development you should edit manually in a text editor some html configuration code. Basically there are three steps:

  • Replace all strings "NA: " with null strings, i.e. "". This can be done with regular expressions.
  • Add the bubble configuration variable at the end of the file in order to load bubble's popups. It should look like:
    var bubbles = chartParams.bubbles
    var bubblesconfig = chartParams.bubbleConfig
    mapchart2d4439c77d0e.bubbles(bubbles, bubblesconfig)
  • Replace the beginning of the bubble's JSON with a bracket. It should be like:
    "bubbles": [ ... ]

Instead of being:

    "bubble": { "": ... }

Also it should be noted that it was possible to include custom polygons based on the publication of Fellgernon Bit

dataton2014's People

Contributors

agarbuno avatar diegoagher avatar

Watchers

 avatar  avatar  avatar  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.