Member-only story

Google Trends data analysis in R

Rafael Belokurows
6 min readDec 27, 2020

--

For most of us, Google Web Search and the other main Google products are our weapons of choice whenever we need to find anything on the internet or in the real world. Whether it is to get up-to-the-minute news of the Covid pandemic, the latest scores of your favorite sport, or to find out how that tasty dish is made, Google is our #1 source of information right now.

One way of using some of the information Google has on us in our favor is with Google Trends. It makes it easier to discover trends and analyze the behavior of our customers and users in general. Google Trends is one of the best tools for knowledge discovery and to show in real-time (or almost) how relevant a subject is — at least in terms of Web searches and public interest.

Google Trends and some (not that) relevant searches all over the world

In this post, I’ll show you how to pull data from Google Trends into your R environment and how you can play around with that data, create some interesting visualizations and help tell your story the way it should be: backed by data :)

Pulling data from Google Trends in R is a piece of cake with package gtrendsR. It was developed by Philip Massicotte and can be found here on his Github page or installed directly in R via:

--

--

Rafael Belokurows
Rafael Belokurows

Written by Rafael Belokurows

Data Nerd, Compulsive Reader, Coffee-drinker, interested in pretty much all things IT

Responses (2)