R Shiny + flexdashboard with code
Motivation
This demo app demonstrates how it is possible to combine the best of modern R
The App: Google Trends Italy/US
Based on search term, the app takes data from google trends and shows results about Italy or US depending on the user selection.
These are the two main pages:
Dashboard
- Trends over the time and forecasting
- Interest by city (top ten)
- Regional Interest
Download Forecast Data
Link
๐ฑ github repositoryโจ live app
History Version
- Google trends Italy
- Added google trends US
- Added Download Forecast Data
R Packages
-
โจ {Shiny}
provides an elegant and powerful web framework for building web applications using R. -
๐ {highcharter}
is a rich R interface to the popular Highcharts JavaScript graphics library. -
๐ป {flexdashboard}
helps construct flexible, attractive, interactive dashboards. -
๐ง {dplyr}
contains a set of functions (or โverbsโ) that perform common data manipulation operations such as filtering for rows, selecting specific columns, re-ordering rows, adding new columns and summarizing data. -
๐ฎ {forecast}
contains function for automatic forecasting determining an appropriate time series model, estimate the parameters and compute the forecasts. -
๐ {stringr}
contains functions for manipulating strings in R. -
๐ {lubridate}
facilitates working with dates and times. -
๐ {gtrendsR}
provides an interface for retrieving and displaying Google Trends information. -
๐ {DT}
provides a R interface to the JavaScript library DataTables. R data objects (matrices or data frames) can be displayed as tables on HTML pages, and DataTables provides filtering, pagination, sorting, and many other features in the tables.
Numbers
๐ 1 file๐ 1 day of work (starting from tutorials of one of my courses)โ 200 lines of code๐ฟ 30 %>% pipe๐คน 100% fun