Demo on how to download Google Trends data into R.

A GIST is here: https://gist.github.com/MarkEdmondson1234/db2f4946fa11eea2a3f8

## install from github if needed
# library(devtools)
# devtools::install_github("dvanclev/GTrendsR")

## load library
library(GTrendsR)
## create a connection using your Google Account details (I have obscured mine)
ch <- gconnect('google email', 'google pw')
## use the connection to get Google trends data
data <- gtrends(ch, "Greece")

## data downloads several things, such as:

head(data$trend) ## trend over time, weekly, indexed eg: 44 48 47 44 45 49 44 49 46 47
##        start        end greece
## 1 2004-01-04 2004-01-10     44
## 2 2004-01-11 2004-01-17     48
## 3 2004-01-18 2004-01-24     47
## 4 2004-01-25 2004-01-31     44
## 5 2004-02-01 2004-02-07     44
## 6 2004-02-08 2004-02-14     48
head(data$searches[[1]]) ## top releated searches eg: "ancient greece" "athens greece" "athens" "greece map" etc.
##   Top searches for greece Hits
## 1          ancient greece  100
## 2                  athens   75
## 3           athens greece   75
## 4              greece map   60
## 5          greece weather   45
## 6         greece holidays   40
data$rising ## rising related searches eg: "facebook greece" "google greece" "greece news" "santorini" etc.
## [[1]]
##                 term   change
## 1    facebook greece Breakout
## 2      google greece    +550%
## 3        greece news    +170%
## 4   santorini greece    +170%
## 5          santorini    +160%
## 6     mykonos greece    +110%
## 7        greece time    +100%
## 8            mykonos    +100%
## 9  weather in greece     +50%
## 10    greece weather     +40%

Plot of Google Data

plot(data$trend$greece, type="l")