gtrendsR provides an interface for retrieving and displaying the information returned online by Google Trends. Trends (number of hits) over the time as well as geographic representation of the results can be displayed.
The package can be installed using the following command:
There are two main functions in the package:
gconnect() to connect to Google using your credentials and
gtrends() to perform actual queries.
In this simple example, Googling trends for keywords
nfl are retrieved.
Get the data
Plot the data
It is also possible to plot geographical data using
googleVis as follow.
Feel free to try it!