https://github.com/luabagg/worldwide-trends
Worldwide Google Trends visualization and classification
https://github.com/luabagg/worldwide-trends
data-analysis data-visualization google-trends trends
Last synced: 2 months ago
JSON representation
Worldwide Google Trends visualization and classification
- Host: GitHub
- URL: https://github.com/luabagg/worldwide-trends
- Owner: luabagg
- License: mit
- Created: 2024-06-29T03:52:35.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-31T14:38:49.000Z (over 1 year ago)
- Last Synced: 2024-12-31T15:29:09.909Z (over 1 year ago)
- Topics: data-analysis, data-visualization, google-trends, trends
- Language: R
- Homepage:
- Size: 5.92 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Worldwide Trends
## Project Overview
This project analyzes data collected from the Google Trends public dataset using Google BigQuery. The analysis is performed using OpenAI API, and the results are presented in an interactive map created with JSVectorMap.
## Project Structure
- `extract-dataset-bq.r`: The script that collects the data from Google BigQuery.
- `classification.r`: The script that performs the data classification with OpenAI.
- `analysis.r`: Performs the aggregation and visualization of the data.
- `/out`: Directory containing the output CSV file generated by the R scripts.
- `/utils`: Scripts containing common functionalities.
- `/reports`: The reports generated by the scripts.
- `/site`: App to display the interactive map using JSVectorMap. [IN PROGRESS]
## Prerequisites
- R
- Google Cloud account and project
- OpenAI API Key
- Web browser
## Setup and Usage Instructions
1. Clone the repository to your local machine.
2. Ensure you have the necessary prerequisites installed.
3. Setup the .Renviron variables with your values.
4. Execute the following files, in order:
- `extract-dataset-bq.r`
- `classification.r`
- `analysis.r`
5. Checkout the CSV outputs in the `/out` directory.
6. Checkout the reports at `/reports`.
7. Open `maps/index.html` in a web browser to view the interactive map. [IN PROGRESS]
## Results
### Countries comparison

### Complete comparison
You can view the complete comparison in the [PDF report](reports/radar-countries-complete.pdf).
## License
This project is licensed under the MIT License.