Skip to content
Snippets Groups Projects
Commit ebe9c4f7 authored by Ben Anderson's avatar Ben Anderson
Browse files

fixed typo, ran to html & pdf

parent b8e50ed9
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,10 @@ subtitle: "A very simple introduction" ...@@ -4,6 +4,10 @@ subtitle: "A very simple introduction"
author: "Ben Anderson & Tom Rushby (ECCD)" author: "Ben Anderson & Tom Rushby (ECCD)"
date: 'Last run at: `r Sys.time()`' date: 'Last run at: `r Sys.time()`'
output: output:
bookdown::pdf_document2:
toc: yes
fig_caption: yes
number_sections: yes
bookdown::html_document2: bookdown::html_document2:
fig_caption: yes fig_caption: yes
code_folding: hide code_folding: hide
...@@ -11,10 +15,6 @@ output: ...@@ -11,10 +15,6 @@ output:
toc: yes toc: yes
toc_depth: 4 toc_depth: 4
toc_float: TRUE toc_float: TRUE
bookdown::pdf_document2:
toc: yes
fig_caption: yes
number_sections: yes
bookdown::word_document2: bookdown::word_document2:
fig_caption: yes fig_caption: yes
number_sections: yes number_sections: yes
...@@ -157,7 +157,7 @@ inFile <- here::here("data", "energy", "MSOA_Dom_Elec", "MSOA_DOM_ELEC_2019.csv" ...@@ -157,7 +157,7 @@ inFile <- here::here("data", "energy", "MSOA_Dom_Elec", "MSOA_DOM_ELEC_2019.csv"
msoa_elecData <- readr::read_csv(inFile) msoa_elecData <- readr::read_csv(inFile)
``` ```
This is electricity consumption data for 2019 for English Local Authorities. What variables have we got? This is electricity consumption data for 2019 for MSOAs. What variables have we got?
```{r elecMSOAVars} ```{r elecMSOAVars}
head(msoa_elecData) head(msoa_elecData)
...@@ -202,8 +202,8 @@ msoa_merged_sf <- merge(msoa_sf_data, msoa_elecData) ...@@ -202,8 +202,8 @@ msoa_merged_sf <- merge(msoa_sf_data, msoa_elecData)
# plot # plot
ggplot2::ggplot(msoa_merged_sf) + ggplot2::ggplot(msoa_merged_sf) +
geom_sf(aes(fill = `Consumption (kWh)`/1000000)) + geom_sf(aes(fill = `Mean consumption (kWh per meter)`)) +
scale_fill_continuous(name = "Total GWh", low = "green", high = "red") scale_fill_continuous(name = "Mean kWh per meter", low = "green", high = "red")
``` ```
......
This diff is collapsed.
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment