"Local authority boundaries (2018) are provided by ",tags$a(href="https://geoportal.statistics.gov.uk/","ONS Open Geography Portal"),"."),
tags$p("This page is best viewed in landscape and full-screen in your favourite web browser."),
fluidRow(
fluidRow(
column(5,
column(5,
wellPanel("Click map to select local authority"),
wellPanel(
tags$p("Only local authority areas within Hampshire are visualised here.",
"In the right-hand panel (bottom panel if viewing on a phone), the average per-capita emissions in 2018 for each local authority are compared, alongside the average for Hampshire.",
"Cliking on the 'Authority detail' tab will reveal historical emissions estimates (2005 to 2018).",
tags$strong("Click a local authority area"),"on the map below to show estimates for only the selected area.")),
leafletOutput("authmap",height="600px")),
leafletOutput("authmap",height="600px")),
column(7,
column(7,
wellPanel("Use slider to select year to view in panel below and mouse-over to view more detail"),
wellPanel("Use the slider to select a year to view in panel below.",
"Choose the 'Authorities compared' tab to compare emissions for all local authority areas,",
"or 'Authority detail' tab to view historic emissions for a single area."),
sliderInput("yearSlider",label="Year",min=2005,
sliderInput("yearSlider",label="Year",min=2005,
max=2018,value=2018,step=1,round=TRUE,
max=2018,value=2018,step=1,round=TRUE,
ticks=FALSE,width="90%",sep="",
ticks=FALSE,width="95%",sep="",
animate=animationOptions(1200)),
animate=animationOptions(1200)),
tabsetPanel(
tabsetPanel(
tabPanel("Authorities compared",
tabPanel("Authorities compared",
...
@@ -228,8 +243,7 @@ server <- function(input, output, session) {
...
@@ -228,8 +243,7 @@ server <- function(input, output, session) {
output$plot<-renderPlot({
output$plot<-renderPlot({
plotCaption=paste0("Emissions data: Department for Business, Energy & Industrial Strategy",
plotCaption=paste0("Emissions data: Department for Business, Energy & Industrial Strategy",
"\nLocal authority boundary data (2018): ONS Open Geography Portal",
"\nVisualisation by Tom Rushby - rushby.shinyapps.io/LAemissions")