There and Back Again competition entry https://shiny.petras.space/commute/
rstats
rshiny
census
competition
leaflet
javascript
stats-nz

app.R 426B

12345678910111213141516171819
  1. library(shiny)
  2. library(leaflet)
  3. library(rgdal)
  4. sf <- readOGR(dsn="../shapefiles/sa20025WGSfil")
  5. crs <- leafletCRS(proj4def = sf@proj4string,
  6. bounds=sf@bbox)
  7. leaflet(sf) %>% addPolygons()
  8. # Define UI for application that draws a histogram
  9. ui <- fluidPage(
  10. )
  11. # Define server logic required to draw a histogram
  12. server <- function(input, output) {
  13. }
  14. # Run the application
  15. shinyApp(ui = ui, server = server)