Take a view at screenshot (I know it looks ugly... I'll beautify the UI later...):
Language: R (v3.6.1)
Platform: RStudio (v1.2.5)
library(shiny)
library(shinyjs)
library(rgdal)
library(broom)
library(gpclib)
There are some problems installling this package, solution reference here. If there are still problems installing, please report issues.
library(ggplot2)
library(dplyr)
library(ggmap)
Require Google Maps Static API application: reference
Acitvation tutorial: link here
library(corrplot)
library(RColorBrewer)
-
Run with pure RShinny on RStudio
Clone the project to your dir. Open RStudio and set working dir to the project. Open the app.R file and click the
Run App
button top-right of the code editor panel or runrunApp('<repository_dir>')
in console. -
Run with GitHub connection with RShinny on RStudio
In RStudio, run the following codes and wait a few seconds while downloading.
# install.packages("RShiny")
library(RShiny)
runGitHub("nyc-yellow-taxi-vis", "Forrest-Li")
-
Run online in shinnyapps.io
I already upload the app on the shinnyapps platform. If you want to save resource of your computer. You can take a look at the app here: https://forrestliyx.shinyapps.io/nyctaxivis/
The Time slicing mode
will switch between mode 1 & 2, which means if you're in one mode, the other mode will be disabled.
Time in a day are differently specified between weekends and workdays.
In Time slicing mode 2,
before checking View by hours
box:
after checking:
- Ugly UI will be improved later.
- Coding structure is inefficient (it's actually a mess, a disaster), will be reconstructed.
- Only about 10% randomly data are selected, if efficiency will be improved, more data will be included.
- Analyze the NYC Taxi Data | An Explorer of Things
- Plotting maps from shapefiles with attributes using ggplot
- How To Easily Customize GGPlot Legend for Great Graphics - Datanovia
- r - Turning off some legends in a ggplot - Stack Overflow
- Basic barplot with ggplot2 – the R Graph Gallery
- ggplot2 barplots: Quick start guide - R software and data visualization - Easy Guides - Wiki - STHDA
- Open and Plot Shapefiles in R – the R Graph Gallery
- Opening shapefile in R? - Geographic Information Systems Stack Exchange
- Map Plots Created With R And Ggmap