Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Mapping with R
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ben Anderson
Mapping with R
Commits
ebe9c4f7
Commit
ebe9c4f7
authored
3 years ago
by
Ben Anderson
Browse files
Options
Downloads
Patches
Plain Diff
fixed typo, ran to html & pdf
parent
b8e50ed9
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
rMappingExample.Rmd
+7
-7
7 additions, 7 deletions
rMappingExample.Rmd
rMappingExample.html
+1919
-0
1919 additions, 0 deletions
rMappingExample.html
rMappingExample.pdf
+0
-0
0 additions, 0 deletions
rMappingExample.pdf
with
1926 additions
and
7 deletions
rMappingExample.Rmd
+
7
−
7
View file @
ebe9c4f7
...
@@ -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 Authoritie
s. What variables have we got?
This is electricity consumption data for 2019 for
MSOA
s. 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 = `
C
onsumption (kWh
)`/1000000
)) +
geom_sf(aes(fill = `
Mean c
onsumption (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.
Click to expand it.
rMappingExample.html
0 → 100644
+
1919
−
0
View file @
ebe9c4f7
This diff is collapsed.
Click to expand it.
rMappingExample.pdf
0 → 100644
+
0
−
0
View file @
ebe9c4f7
File added
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment