Brazilian e-commerce: Data Visualization with R and Shiny

Posted on Feb 3, 2019

Project GitHub | LinkedIn:   Niki   Moritz   Hao-Wei   Matthew   Oren

The skills we demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.


Because of my marketing background, finding information hiding within a marketing dataset is always an interesting topic to me. It gives me a sense of accomplishment when I clean up a very messy large dataset, and finally, get some insights from it. Therefore, I've decided to practice my skills of data cleaning and visualization by using this Brazilian online retail sales dataset for my first shiny project during the bootcamp. My objective of this project is to gain experience in dealing with large sales dataset, so I could feel more confident when facing any other multi-dimensional datasets like this one in the future. Here's a link to my project. If you want to view my coding, this is my github repo.

The Dataset

The dataset I used is from, and it is provided by the largest Brazilian online department store called olist. From the database sigma below you will see, the dataset contains 8 separated datasets in total, stored multi-dimensional data about over 100k orders' information of olist from end of 2016 to 2018. It is a great database for us to understand the Brazilian E-commerce from multiple perspectives.

The Project

First, is the data cleaning process. Because the raw data has 8 datasets in total, and with a lot of duplicates and useless information, I spent some time joining them to collect the variables I need and removed some unnecessary data. Dplyr became a very handy tool during this process. After the cleaning, I generated a final_order table with 19 variables and only include the data I need for my data visualization.

My shiny interface has three sections in total, the first one is the geographic section. With this one, the user could view the data from a State perspective. They can plot any variables like Total Sales, Average Shipping Cost or Average Delivery Days on the map, and comparing them between states. The right corner section allows the user to discover correlations between each variable, and see the actual numbers of the variable they picked.

The trends section focuses on sales trends over time, between each category. Users could pick the date range and categories that they want to compare, the line chart in the major section will output the result clearly. The yellow sections give users the access to daily data numbers.

The last section allows users to view the data from a category standpoint. You can easily pick any category you want to compare and see the bar chart to compare total sales, average unit sales and average review score between different categories.

About Author

Qifan Wang

Recent NYU graduate with MS in Management Information Systems, with previous experiences in business analytics and marketing industry, Qifan is passionate about applying Data Science on the field of business. With 12 weeks of intensive training in the...
View all posts by Qifan Wang >

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