knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
This is an interface to work with Google Trends. It uses the gtrendsR package, but extends functionality a bit. Users are allowed to search for up to 13 brands (Google Trends limit is 5), tables and graphs are returned with raw data, share of search data, and change in search (z-scored).
Functionality is through a Shiny App that comes with the package. Follow directions to use within the app.
knitr::include_graphics("https://res.cloudinary.com/dn83gtg0l/image/upload/v1670267567/Screen_Shot_2022-12-05_at_11.10.10_AM.png") knitr::include_graphics("https://res.cloudinary.com/dn83gtg0l/image/upload/v1670267563/Screen_Shot_2022-12-05_at_11.11.24_AM.png")
You can install the development version of GSPtrends from GitHub with:
# install.packages("devtools") devtools::install_github("taylorgrant/GSPtrends")
This is a basic example which shows you how to solve a common problem:
library(GSPtrends) runApp()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.