Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Mapping with R
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
SERG
Mapping with R
Commits
0fb7d699
Commit
0fb7d699
authored
3 years ago
by
Tom Rushby
Browse files
Options
Downloads
Patches
Plain Diff
Update with resource link
parent
d8e8747c
No related branches found
No related tags found
1 merge request
!3
Cartograms example
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lsoaExample.Rmd
+4
-0
4 additions, 0 deletions
lsoaExample.Rmd
with
4 additions
and
0 deletions
lsoaExample.Rmd
+
4
−
0
View file @
0fb7d699
...
@@ -26,6 +26,8 @@ head(sf_data)
...
@@ -26,6 +26,8 @@ head(sf_data)
```
```
Draw the map using leaflet ([useful resource](https://rstudio.github.io/leaflet/)) ...
```{r}
```{r}
# Useful lookup spatial reference for CRS
# Useful lookup spatial reference for CRS
# https://spatialreference.org/ref/epsg/27700/
# https://spatialreference.org/ref/epsg/27700/
...
@@ -85,6 +87,8 @@ Join to geography data ...
...
@@ -85,6 +87,8 @@ Join to geography data ...
sf_data_elec <- left_join(sf_data,lsoa_elecData, by = c("LSOA11CD" = "Lower Layer Super Output Area (LSOA) Code"))
sf_data_elec <- left_join(sf_data,lsoa_elecData, by = c("LSOA11CD" = "Lower Layer Super Output Area (LSOA) Code"))
```
```
And re-draw the map ...
```{r}
```{r}
# create popup first (using htmltools)
# create popup first (using htmltools)
sf_data_elec$popup_text <-
sf_data_elec$popup_text <-
...
...
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