Visualizing Data from the British Geological Survey

Posted on Feb 3, 2018
The skills the author demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

Minerals are a ubiquitous part of daily life. So much so, it is likely that you are touching something that was mined at this very moment. As computer users, car passengers, and home dwellers, we all rely on machines we build with minerals. The fact that minerals are so much a part of our lives drew me into asking: What minerals do we use? Where do they come from? Who produces minerals? I wanted to incorporate my curiosity with code, and do a bit of data journalism.

It is easy enough to find info on any mineral you like, try Wikipedia. But what if you wanted to know where the majority of cobalt is mined? And what if you wanted to know the most produced mineral for any given country. One place you might look is the British Geological Survey- an organization that annually collects mineral production per country in a series of spreadsheets titled Mineral Production Report. Flipping through numbers in a table isn't so fun. See image below.

 

Visualizing Data from the British Geological Survey

 

And it isn't so fast. Perhaps you might think, "Instead of numbers in a table, can we see these as shapes and trend lines? This would make for a good data visualization report.". I thought the exact same thing, and went about building the application you can see here!

 

About the App

This application visualizes World Mineral Production, an annual report on common minerals produced by country, from the year 1970 to 2015.

 

In one interactive graph, you can select a mineral, and select countries to compare their output of that mineral by year, along with the world average. Visualizing Data from the British Geological Survey

In another, you can select a country, and compare the total recorded production of selected/all minerals by country.

Visualizing Data from the British Geological Survey

Another graph compares minerals by average price per ton (with data sourced from metal exchange APIs like the London Metal Exchange), and average tonnage produced per year.

 

The goal here is to show old data in a new way, to reorganize the data, line it up with other datasets, and see the output. As this application evolves, I believe this methodology will show further trends, and foster the creation of new features that expand on the theme of mineral production. To be continued!

 

About the Data

The British Geological Survey's World Mineral Production is a pdf formatted paper, and is also available for download in Excel. However, they do have certain parameters for downloading (Things like 10 years at a time, and one mineral at a time). Because of the website's specific parameters, I wrote a python script to automatically visit the BGS site, each time requesting a different part of the BGS's report. I parsed the excel files into a data frame, and saved it to a CSV file to pass onto this Shiny app. The code for parsing World Mineral Production can be found here.

Each graph involves restructuring the dataset in R, and incorporating it into Shiny- a web framework in R. You can see the code here.

For comments, questions, or suggestions, please feel welcome to send me an e-mail.

 

 

About Author

Dean Goldman

Dean Goldman is based in New York City. He is a creative thinker with experience in web programming, data science, and design. Seeking to apply skills in problem solving, coding, and data analytics.
View all posts by Dean Goldman >

Related Articles

Leave a Comment

No comments found.

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans 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 boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis 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 seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI