Skip to content
Snippets Groups Projects
Commit 84d22fd9 authored by Tom Rushby's avatar Tom Rushby
Browse files

Update title and graph caption

parent d395323b
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ getIntensity<- function(dateGet = input$dateToGet, longDF = TRUE) { ...@@ -40,7 +40,7 @@ getIntensity<- function(dateGet = input$dateToGet, longDF = TRUE) {
ui <- fluidPage( ui <- fluidPage(
# App title ---- # App title ----
titlePanel("GB Carbon Intensity forecast"), titlePanel("GB Grid Electricity Carbon Intensity Forecast"),
# Sidebar layout with input and output definitions ---- # Sidebar layout with input and output definitions ----
sidebarLayout( sidebarLayout(
...@@ -90,7 +90,7 @@ server <- function(input, output) { ...@@ -90,7 +90,7 @@ server <- function(input, output) {
output$intensityPlot <- renderPlot({ output$intensityPlot <- renderPlot({
plotCaption = paste0("Data from: https://api.carbonintensity.org.uk", plotCaption = paste0("Data from: https://api.carbonintensity.org.uk",
"\nDate selected: ",input$dateToGet) "\nrushby.shinyapps.io/gridforecast")
ggplot(getIntensity(dateGet = input$dateToGet, longDF = TRUE), aes(periodMid,value, fill = measure)) + ggplot(getIntensity(dateGet = input$dateToGet, longDF = TRUE), aes(periodMid,value, fill = measure)) +
geom_col(position = "identity", alpha = 0.6) + geom_col(position = "identity", alpha = 0.6) +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment