Hack Session for NYTimes Dialect Map Visualization, Sponsored by OReilly Strata

Posted on Jul 23, 2014

Many thanks go to AlleyNYC for space sponsorship! The event food is sponsored by O'Reilly Strata!

Special thanks go to Vivian Zhang for giving such a great workshop!

NYC Data Science Academy is offering six relative courses:

RSVP Data Science with R, Beginner Level

RSVP Data Science with R, Intermediate Level

RSVP Introduction to Data Science by R, 2 Full Days

RSVP RStudio’s Master R Developer Workshop 2 Days

RSVP 20 Most Popular R Packages Series – Knitr – Dynamic Reporting

RSVP 20 Most Popular R Packages Series – Shiny – Web Applications


Meetup Announcement:


Vivian Zhang is Co-Founder & CTO of Supstat Inc, a Statistical Consulting firm of top Data Scientists, Vivian is a data scientist who has been devoted to the analytics industry and the development and use of data technologies for several years. You can follow her on Twitter at @vivian_zhang @SupStat @nycdatasci  or #nycdatasci


Previously, Josh Katz, Graphics Editor at The New York Times, talked on June 10 to discuss one of his projects, the "Dialect Map".  He discussed how spatial statistics, data visualization and information design all came together. (See blog post and video)

The Dialect Map project was the Times’ most popular content of the entire year of 2013. From the survey results, Josh created a series of maps depicting regional dialect variation in the US, which set off a sensation on the Internet and in popular media. From this, he developed the New York Times’ dialect quiz, turning what began as an exercise in spatial statistics and data visualization into some of the most-viewed content in NYT history.

In his talk, Josh delved into the background and development of the dialect maps and quiz–the story in general, as well as the math behind them. He talked about how data visualization and statistics could be used to illustrate the hidden contours of our world, extricating narrative from numbers and turning data into stories.

In this hack session, Vivian told you all you should know about choropleth map in R to make Dialect map. She started from the data scraping step to build the database of the survey, then she marched to the shiny development including functions for map plotting. Finally she established a fully developed shiny application demonstrating the dialect map project.


If you want to follow along, download these packages in R:(just run these codes):

install.packages(c("maps", "mapproj", "mapdata",  "ggplot2"))

and check the dataset out.

Other Useful Info Link:

Data used in this workshophttps://slides.nycdatascience.com/supstat_dialectmap/survey.result.rda

Example datahttps://slides.nycdatascience.com/supstat_dialectmap/example_Data.RData

Previous shiny session (with slides, videos and sample application): https://nycdatascience.com/meetup/building-interactive-web-app-with-shiny/

Code to deploy your shiny app to shinyapps.iohttps://slides.nycdatascience.com/supstat_dialectmap/shiny_deploy.R

if (!require("devtools"))
setAccountInfo(name='supstat', token='xxx', secret='xxxx')
#configureApp("dialect_map_shiny_project", size="xlarge")

Shiny application project folder (three files: "ui.r", "server.R", "survev.result.rda"): https://slides.nycdatascience.com/supstat_dialectmap/dialect_map_shiny_project.zip

set dialect_map_shiny_project as your working folder
open shiny_deploy.r
grab your token from www.shinyapps.io and add to shiny_deploy.r, run it.

About Author

Related Articles

Leave a Comment

No comments found.

View Posts by Categories

Our Recent Popular Posts

View Posts by Tags

#python #trainwithnycdsa 2019 airbnb Alex Baransky alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus API Application artist aws beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep Bundles California Cancer Research capstone Career Career Day citibike clustering Coding Course Demo Course Report D3.js data Data Analyst data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization Deep Learning Demo Day Discount dplyr employer networking feature engineering Finance Financial Data Science Flask gbm Get Hired ggplot2 googleVis Hadoop higgs boson Hiring hiring partner events Hiring Partners Industry Experts Instructor Blog Instructor Interview Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter lasso regression Lead Data Scienctist Lead Data Scientist leaflet linear regression Logistic Regression machine learning Maps matplotlib Medical Research Meet the team meetup Networking neural network Neural networks New Courses nlp NYC NYC Data Science nyc data science academy NYC Open Data NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time Portfolio Development prediction Prework Programming PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn Selenium sentiment analysis Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau team TensorFlow Testimonial tf-idf Top Data Science Bootcamp twitter visualization web scraping Weekend Course What to expect word cloud word2vec XGBoost yelp