diff --git a/app/shiny_app.R b/crime-data-app/app.R similarity index 95% rename from app/shiny_app.R rename to crime-data-app/app.R index 6b6c176..5d5489f 100644 --- a/app/shiny_app.R +++ b/crime-data-app/app.R @@ -1,8 +1,10 @@ library(shiny) library(tidyverse) +library(leaflet) +library(rsconnect) # load data -dat <- read.csv('data/crime_lat_long.csv') +dat <- read.csv('crime_lat_long.csv') # set crimes for select box input crimes_list <- c("Total Crime" = "violent_per_100k", @@ -38,6 +40,8 @@ ui <- fluidPage( tabPanel(title = "Map", leafletOutput("mymap")), tabPanel(title = "Single City", plotOutput("line_chart"), + "Comparisions to national average (from the data) of the current year,", + "safety rank out of 67 cities:", tableOutput("percentage_table")) ) ) diff --git a/data/crime_lat_long.csv b/crime-data-app/crime_lat_long.csv similarity index 100% rename from data/crime_lat_long.csv rename to crime-data-app/crime_lat_long.csv diff --git a/crime-data-app/rsconnect/shinyapps.io/lyiris22/crime-data-app.dcf b/crime-data-app/rsconnect/shinyapps.io/lyiris22/crime-data-app.dcf new file mode 100644 index 0000000..1bedb36 --- /dev/null +++ b/crime-data-app/rsconnect/shinyapps.io/lyiris22/crime-data-app.dcf @@ -0,0 +1,10 @@ +name: crime-data-app +title: +username: +account: lyiris22 +server: shinyapps.io +hostUrl: https://api.shinyapps.io/v1 +appId: 655040 +bundleId: 1823342 +url: https://lyiris22.shinyapps.io/crime-data-app/ +when: 1547861691.06993