Channel your inner data-loving self, even if you don’t consider yourself a coder

Love cars, there is a reason to code for that! Photo by Boitumelo Phetla from Unsplash

Every day when I open R and look at my code, I think about either how poorly it is written or try to figure out how I wrote something so complex. If you have coded before, you have had this feeling x100 over, or maybe more. It’s called imposter syndrome and it isn’t something that should ever hinder your growth as a data scientist.

But for me, the feeling is somewhat warranted. Alas, I am not a data scientist. I don’t spend my whole day in R or Python. I can’t build AI algorithms or ML models. …

Using relevant tweets to understand how people feel about brands (Now you can put that on your resume!)

All the emotions, as demonstrated by eggs! — Photo by Tengyart from Unsplash

Brands are essential. They live in our minds as ideas and each person constantly interacts with hundreds of brands a day, sometimes positively, sometimes negatively.

But what is their role in data science? Well given most tech is fueled by strong business brands, it is probably essential for any data scientist to have even a basic understanding of brands.

In this post, I want to explain how to do a simple brand sentiment analysis using Twitter. My focus? Robinhood, the trading app. You probably heard about the GameStop (GME) frenzy that occurred just a couple months ago where Reddit users…

Using R to graph how female representation in government has increased over the past 24 years for International Women’s Day. Hint, it's not enough!

Happy International Women’s Day!

In the spirit of the day, I wanted to do a post celebrating the many wonderful women of this world. In keeping with my political analytics topics, I thought it would be interesting to look at the proportion of women are in government by country, and how that has changed over the past few decades. Luckily The World bank has such a dataset, measuring the proportion of government seat’s held by women in every country throughout the world. Let’s get to it and visualize this data!

In total, I will walk you through 5 visualizations:

  1. Graph…

Going from storytelling Presidential Approval Ratings to making a movie about it with R!

In my last post, I demonstrated how you can create graphs and text that tell a nice story about how much the American public approved of each of the past 14 Presidents! So, how about we make the information more fun to watch?

Luckily, R can accomplish this. With the gganimate and magick
packages, GIF building is easy and effective. Let’s look at the end
result first, so I can reel you into making this for yourself.

Figure 1 — Animated Chart comparing the approval ratings of each president to Donald Trump in their first 4 years

This GIF shows Trump’s approval rating compared to the approval ratings of every president in the past 75 years in an individual one-on-one…

Use text, vertical lines and relevant titles to tell a story of Presidential Approval Ratings in R!

A few weeks ago, I tuned into an RStudio talk by John Burn-Murdoch about reporting and visualizing the COVID pandemic. As a data journalist at the Financial Times, he has been extremely influential over the past year creating well-known charts and graphics about the spread of COVID and it’s toll on the world. And it is all because his graphics tell a story.

As a consultant, I know the importance of storytelling, but doing it in programming is difficult as the story often gets lost behind the data. Still, you should always try to tell a story with your graphics…

The Reputational Consequences of Robinhood’s Broken Brand Promise

Twitter Post from Robinhood in 2016 promoting democratized trading of stocks and securities

Robinhood and his merry band of outlaws. Throughout the week that relationship was strong in the world of Wall Street and the financial markets, as the Robinhood app enabled a merry band of “Reddit bros” to challenge big institutional hedge funds at their own game — a quasi steal from the rich, give to the poor story. By offering free trading, Robinhood was the tool used by millions of every day, non-institutional retail traders to buy GME, AMC and other heavily shorted stocks to create what is termed as a short squeeze, costing the hedge funds who shorted these stocks…

Visualizing approval polls across Presidents over the past 75 years

Okay, you got me. Stability and Donald Trump are not two terms that are usually seen in the same sentence. But overlooking policy, events and Twitter rants, Trump’s presidency characterized a level of stability we have not seen in Presidential history in one way–Approval Ratings.

I present the chart-du-jour so to speak. Below you see the final instalment of FiveThirtyEight’s approval ratings of President Trump. What you see is a constant and consistent approval trend line between a high of about 45 and a low of 35. …

How to use Twitter, R and creativity to download and build an evolving map GIF!

Since October, the UK’s COVID-19 strategy has been defined by the government’s Lockdown Tier system. Different regions, councils and cities have had their lockdowns change from Tier 1 — Medium Alert to the newly introduced Tier 4 — Stay At Home. Now everybody is in a national lockdown, but people all over the country continuously had trouble keeping track of what tier they were in, and what restrictions they had to abide with.

From a mapping perspective, what has this looked like? The website Election Maps UK made constantly updated maps of the different Tiers changing from October to now…

After a two month hiatus, all eyes are back on the United States for their second instalment of “Can’t Look Away Election Special,” sponsored by Georgia’s unique runoff voting system for the two open Senate seats. Well, not all eyes. Despite attempts by President Trump, Biden is still the official President-Elect, so if you are not interested in the further dynamics of the three-tiered power struggle in US politics feel free to tune out now.

As you may have heard, the winner of these elections will decide the Senate, potentially giving the Democrats full control of all three levels of…

Dylan Anderson

Simulation & Strategy Consultant at Deloitte. Code in R & blog about politics using data. Connect on LinkedIn, Twitter or at my blog

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store