View source: R/calculate_share.R
calculate_share | R Documentation |
Calculates the share of search for each search term and date period. Share is calculated for raw hits data as well as several moving averages (via Shiny sliderInput). Z-scores are also calculated for each time period and Keyword.
calculate_share(tbl, ma, pal)
tbl |
Data frame output from Google Trends API |
ma |
Moving average to apply via Shiny sliderInput |
pal |
Color palette selected by user in Shiny |
list containing 3 plots (share line, share area, zscore area) and 3 tables of data used
## Not run:
calculate_share(tbl)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.