mapping_environmental_action/mapping_draft.Rmd

375 lines
33 KiB
Plaintext
Raw Normal View History

2017-07-17 11:31:48 +00:00
---
title: "Mapping Environmental Action in Scotland"
abstract:
style: jeremy1
author: “[Jeremy H. Kidwell](http://jeremykidwell.info)”
affiliation: University of Birmingham
2017-07-17 14:39:59 +00:00
institute: University of Birmingham
2017-07-17 11:31:48 +00:00
e-mail: “[j.kidwell@bham.ac.uk](mailto:j.kidwell@bham.ac.uk)”
date: “`r Sys.Date()`”
2019-01-25 16:55:16 +00:00
bibliography: /Users/jeremy/Dropbox/bibtex/everything.bib
2017-07-17 11:31:48 +00:00
linkcolor: black
fontsize: 12pt
---
```{r setup, include=FALSE}
require(knitr)
2018-08-02 10:27:40 +00:00
knitr::opts_chunk$set(fig.path='figures/', warning=FALSE, echo=FALSE, message=FALSE)
```
```{r load_packages, include=FALSE}
2019-01-25 16:55:16 +00:00
## Default repo
setwd("/Users/jeremy/gits/mapping_environmental_action")
local({r <- getOption("repos")
r["CRAN"] <- "https://cloud.r-project.org"
options(repos=r)
})
# TODO: need to alter this to use new sf data class as sp is deprecated
2018-11-26 12:04:56 +00:00
require(sf) # new simplefeature data class, supercedes sp in many ways
require(rgdal)
require(GISTools) # deprecated by sf()
2019-01-25 16:55:16 +00:00
require(sp) # needed for proj4string, deprecated by sf()
2017-07-17 11:31:48 +00:00
require(ggplot2)
2018-11-26 12:04:56 +00:00
require(broom) # required for tidying SPDF to data.frame for ggplot2
require(rgeos)
2017-07-17 11:31:48 +00:00
require(ggmap)
require(maptools)
require(RCurl)
2019-01-25 16:55:16 +00:00
require(tibble) # using for grouped bar plot
require(tidyr) # using for grouped bar plot
2017-07-17 11:31:48 +00:00
require(dplyr)
2019-01-25 16:55:16 +00:00
library(reshape2) # using for grouped bar plot
2017-07-17 11:31:48 +00:00
require(pander)
require(scales)
require(sqldf) # using sqldf to filter while loading very large data sets
2019-01-25 16:55:16 +00:00
require(plotly) # allows for export of plots to dynamic web pages
# Set up local workspace:
if (dir.exists("data") == FALSE) {
dir.create("data")
}
if (dir.exists("figures") == FALSE) {
dir.create("figures")
}
if (dir.exists("derivedData") == FALSE) {
dir.create("derivedData")
}
# Define Coordinate Reference Systems (CRS) for later use
# Note: I've used British National Grid (27000) in this paper, but have found that it is falling out
# of use in many cases, so will be defaulting to WGS84 in future data-sets and papers
# TODO: make canonical CRS definitions and use consistently; remove proj4string(admin_lev1) and other similar instances below
wgs84 = '+proj=longlat +datum=WGS84'
bng = "+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000
+y_0=-100000 +datum=OSGB36 +units=m +no_defs +ellps=airy
+towgs84=446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894"
2017-07-17 11:31:48 +00:00
```
# Introduction[^15541312]
2017-07-17 12:41:30 +00:00
Until recently, environmentalism has been treated by governments and environmental charities as a largely secular concern. In spite of the well-developed tradition of "eco-theology" which began in earnest in the UK in the mid-twentieth century (and which has many precursors in previous centuries), third-sector groups and governments, particularly in Britain and Europe, have largely ignored religious groups as they have gone about their business crafting agendas for behaviour change, developing funding programmes, and developing platforms to mitigate ecological harm, motivate consumers and create regulation regimes. That this has changed is evidenced by the fact that several prominent non-religious environmental groups have commissioned studies and crafted outreach programmes to persons with a particular faith tradition or to "spiritual communities" including RSPB (2013) and the Sierra Club USA (2008).[^158261118] Further, since 2008, the Scottish Government has provided a significant portion of funding for the ecumenical charity, Eco-Congregation Scotland, which works to promote literacy on environmental issues in religious communities in Scotland and helps to certify congregations under their award programme. What is not well known, however, even by these religious environmental groups themselves, is whether or how their membership might be different from other environmental groups. This study represents an attempt to illuminate this new interest with some more concrete data about religious groups in Scotland and how they may differ from non-religious counterparts.
2017-07-17 11:31:48 +00:00
2018-08-02 10:27:40 +00:00
# Eco-Congregation Scotland: The Basics
2017-07-17 11:31:48 +00:00
2018-08-02 10:27:40 +00:00
```{r load_ecs_data}
2017-07-17 11:31:48 +00:00
# read in Eco-Congregation Scotland data and-------------------
# ...turn it into a SpatialPointsDataFrame---------------------
# TODO: upload ECS-GIS-Locations_3.0.csv to zenodo repository, i.e.
2018-11-26 12:04:56 +00:00
ecs <- read.csv("data/ECS-GIS-Locations_3.0.csv", comment.char="#")
ecs_sf <- st_as_sf(ecs, coords = c("X", "Y"), crs=27700)
# unnecessary with advent of sf (above)
2017-07-17 11:31:48 +00:00
coordinates(ecs) <- c("X", "Y")
proj4string(ecs) = CRS(bng)
```
2019-01-25 16:55:16 +00:00
There are `r length(ecs)` eco-congregations in Scotland. By some measurements, particularly in terms of individual sites and possibly also with regards to volunteers, this makes Eco-Congregation Scotland one of the largest environmental third-sector groups in Scotland.[^159141043]
2017-07-17 11:31:48 +00:00
In seeking to conduct GIS and statistical analysis of ECS, it is important to note that there some ways in which these sites are statistically opaque. Our research conducted through interviews at a sampling of sites and analysis of a variety of documents suggests that there is a high level of diversity both in terms of the number of those participating in environmental action and the types of action underway at specific sites. Work at a particular site can also ebb and flow over the course of time. Of course, as research into other forms of activism and secular environmental NGOs has shown, this is no different from any other third sector volunteer group. Variability is a regular feature of groups involved in activism and/or environmental concern.
2017-07-17 14:39:59 +00:00
For the sake of this analysis, we took each Eco-Congregation Scotland site to represent a point of analysis as if each specific site represented a community group which had "opted-in" on environmental concern. On this basis, in this section, in the tradition of human geography, we "map" environmental action among religious communities in Scotland a variety of ways. This is the first major geographical analysis of this kind conducted to date in Europe. We measure the frequency and location of ECS sites against a variety of standard geo-referenced statistical data sets, seeking to provide a statistical and geographically based assessment of the participation of religious groups in relation to the following:
2017-07-17 11:31:48 +00:00
- Location within Scotland
- Religious affiliation
- Relation to the Scottish Index of Multiple Deprivation (SIMD)
- Relation to the 8-Fold Scottish Government Urban-Rural Scale
- Proximity to "wilderness" (based on several different designations)
For the sake of comparison, we also measured the geographical footprint of two other forms of community group in Scotland, (1) Transition Towns (taking into account their recent merge with Scotland Communities Climate Action Network) and (2) member groups of the Development Trust Association Scotland ("DTAS"). These two groups provide a helpful basis for comparison as they are not centralised and thus have a significant geographical dispersion across Scotland. They also provide a useful comparison as transition is a (mostly) non-religious environmental movement, and community development trusts are not explicitly linked to environmental conservation (though this is often part of their remit), so we have a non-religious point of comparison in Transition and a non-environmental point of comparison with DTAS
2017-07-17 11:31:48 +00:00
2018-08-02 10:27:40 +00:00
# Technical Background
2017-07-17 11:31:48 +00:00
2017-07-17 14:39:59 +00:00
Analysis was conducted using QGIS 2.8 and R Studio 0.99.893, and data-sets were generated in CSV format.[^15541313] To begin with, I assembled a data set consisting of x and y coordinates for each congregation in Scotland and collated this against a variety of other specific data. Coordinates were checked by matching UK postcodes of individual congregations against geo-referencing data in the Office for National Statistics May 2014 postcode database. In certain instances a single "congregation" is actually a series of sites which have joined together under one administrative unit. In these cases, each site was treated as a separate data point if worship was held at that site at least once a month, but all joined sites shared a single unique identifier. As noted above, two other datasets were generated for the sake of comparative analysis.[^177171536] These included one similar Environmental Non-Governmental Organisation (ENGO) in Scotland (1) Transition Scotland (which includes Scotland Communities Climate Action Network);[^15541342] and another community-based NGO, Scottish Community Development Trusts.[^158261232] As this report will detail, these three overlap in certain instances both literally and in terms of their aims, but each also has a separate identity and footprint in Scotland. Finally, in order to normalise data, we utilised the PointX POI dataset which maintains a complete database of Places of Worship in Scotland.[^15541614]
2017-07-17 11:31:48 +00:00
# Background and History of Eco-Congregation Scotland
Eco-Congregation Scotland began a year before the official launch of Eco-Congregation England and Wales, in 1999, as part of an effort by Kippen Environment Centre (later renamed to Forth Environment Link, or "FEL") a charity devoted to environmental education in central Scotland[^158261210] to broaden the scope of its environmental outreach to churches in central Scotland.[^15826124] Initial funding was provided, through Kippen Environment Centre by way of a "sustainable action grant" (with funds drawn from a government landfill tax) through a government programme called Keep Scotland Beautiful (the Scottish cousin of Keep Britain Tidy). After this initial pilot project concluded, the Church of Scotland provided additional funding for the project in the form of staff time and office space. Additional funding a few years later from the Scottish Government helped subsidise the position of a business manager, and in 2011 the United Reformed Church contributed additional funding which subsidised the position of a full-time environmental chaplain for a 5-year term, bringing the total staff to five.
2018-08-02 10:27:40 +00:00
```{r calculate_ecs_by_year}
# Tidy up date fields and convert to date data type
2018-09-12 13:04:09 +00:00
ecs$registration <- as.Date(ecs$registration, "%Y-%m-%d")
2018-11-26 12:04:56 +00:00
# TODO: Fix issues here with R complaining that "character string is not in a std...
# ecs$award1 <- as.Date(ecs$award1)
# ecs$award2 <- as.Date(ecs$award2)
# ecs$award3 <- as.Date(ecs$award3)
# ecs$award4 <- as.Date(ecs$award4)
2019-01-25 16:55:16 +00:00
ecs_complete_cases <- ecs[complete.cases(ecs$year_begun),]
2017-07-17 11:31:48 +00:00
```
2019-01-25 16:55:16 +00:00
The programme launched officially in 2001 at Dunblane Cathedral in Stirling and by 2005 the project had `r length(ecs_complete_cases[ecs_complete_cases$year_begun < 2006, ])` congregations registered to be a part of the programme and 25 which had completed the curriculum successfully and received an Eco-Congregation award. By 2011, the number of registrations had tripled to `r length(ecs_complete_cases[ecs_complete_cases$year_begun < 2012, ])` and the number of awarded congregations had quadrupled to `r sum(ecs$award1 < "01/01/2012", na.rm=TRUE)`. This process of taking registrations and using a tiered award or recognition scheme is common to many voluntary organisations. The ECS curriculum was developed in part by consulting the Eco-Congregation England and Wales materials which had been released just a year earlier in 1999, though it has been subsequently revised, particularly with a major redesign in 2010. In the USA, a number of similar groups take a similar approach including Earth Ministry (earthministry.org) and Green Faith (greenfaith.org).
2017-07-17 11:31:48 +00:00
In the case of Eco-Congregation Scotland, congregations are invited to begin by "registering" their interest in the programme by completing a basic one-sided form. The next step requires the completion of an award application, which includes a facilitated curriculum called a "church check-up" and after an application is submitted, the site is visited and assessed by third-party volunteer assessors. Sites are invited to complete additional applications for further awards which are incremental (as is the application process). Transition communities, at least in the period reflected on their map, go through a similar process (though this does not involve the use of a supplied curriculum) by which they are marked first as "interested," become "active" and then gain "official" status.[^1554162]
# Representation by Regional Authorities (Council Areas)
2018-08-02 10:27:40 +00:00
```{r import_admin_data}
2017-07-17 11:31:48 +00:00
# read in polygon for Scottish admin boundaries
# TODO: upload bundle of admin data to new zenodo repository and alter below to use new URLs
2018-11-26 12:04:56 +00:00
# TODO: need to remove readOGR below once st_read is confirmed to be working as sf
2019-01-25 16:55:16 +00:00
if (file.exists("data/scotland_ca_2010.shp") == FALSE) {
2018-10-16 10:13:11 +00:00
download.file("https://borders.ukdataservice.ac.uk/ukborders/easy_download/prebuilt/shape/Scotland_ca_2010.zip",
destfile = "data/Scotland_ca_2010.zip")
unzip("data/Scotland_ca_2010.zip", exdir = "data")
2019-01-25 16:55:16 +00:00
}
2018-10-16 10:13:11 +00:00
admin_lev1 <- readOGR("./data", "scotland_ca_2010")
2018-11-26 12:04:56 +00:00
admin_lev1_sf <- st_read("data/scotland_ca_2010.shp")
2017-07-17 11:31:48 +00:00
# read in polygon for intermediate admin boundary layers
2019-01-25 16:55:16 +00:00
if (file.exists("data/scotland_parlcon_2011.shp") == FALSE) {
download.file("http://census.edina.ac.uk/ukborders/easy_download/prebuilt/shape/Scotland_parlcon_2011.zip",
destfile = "data/Scotland_parlcon_2011.zip")
2017-07-17 11:31:48 +00:00
unzip("data/Scotland_parlcon_2011.zip", exdir = "data")
2019-01-25 16:55:16 +00:00
}
2017-07-17 11:31:48 +00:00
admin_lev2 <- readOGR("./data", "scotland_parlcon_2011")
2019-01-25 16:55:16 +00:00
## TODO note - need to optimise here, pre-filter sqldf? shapefile on "geo_code"" or "label" begins with "S"
# download.file("http://census.edina.ac.uk/ukborders/easy_download/prebuilt/shape/infuse_ward_lyr_2011.zip",
# destfile = "data/infuse_ward_lyr_2011.zip")
# unzip("data/infuse_ward_lyr_2011.zip", exdir = "data")
# admin_lev3 <- readOGR("./data", "infuse_ward_lyr_2011")
2017-07-17 11:31:48 +00:00
# read in Transition Towns data and turn it into a SpatialPointsDataFrame
transition <- read.csv(text=getURL("https://zenodo.org/record/165519/files/SCCAN_1.4.csv"))
coordinates(transition) <- c("X", "Y")
proj4string(transition) <- CRS(wgs84)
2017-07-17 11:31:48 +00:00
# read in all_churches data and turn it into a SpatialPointsDataFrame
# TODO: need to remove all data points which are outside BNG area to
2017-07-17 14:39:59 +00:00
# resolve error
# also need to make symmetrical with ECS denominations, add Methodist
# churches, remove nazarene and salvation army
2017-07-17 11:31:48 +00:00
# churches_all <- read.csv("data/all_churches_0.9.csv")
# churches_all_clean<-churches_all[complete.cases(churches_all),]
# churches_all_null<-churches_all[!complete.cases(churches_all),]
# coordinates(churches_all) <- c("X", "Y")
# proj4string(churches_all) <- proj4string(admin_lev1)
2017-07-17 11:31:48 +00:00
# read in pointX data and turn it into a SpatialPointsDataFrame
pow_pointX <- read.csv("./data/poi_2015_12_scot06340459.csv", sep="|")
coordinates(pow_pointX) <- c("feature_easting", "feature_northing")
# TODO: need to alter to draw from wgs84 or bng defined in preamble above
proj4string(pow_pointX) <- proj4string(admin_lev1)
2017-07-17 11:31:48 +00:00
# read in Scottish Community Dev. trust data and turn it into a SpatialPointsDataFrame
dtas <- read.csv("data/community-dev-trusts-2.6.csv")
coordinates(dtas) <- c("X", "Y")
proj4string(dtas) <- proj4string(admin_lev1)
2017-07-17 11:31:48 +00:00
# read in permaculture data and turn it into a SpatialPointsDataFrame
permaculture <- read.csv("data/permaculture_scot-0.8.csv")
coordinates(permaculture) <- c("X", "Y")
proj4string(permaculture) <- proj4string(admin_lev1)
# TODO: Code below augments existing dataframes to run calculations and add columns with point counts per polygon,
# percentages, and normalising data. I'm pretty sure this can all be done inline under create_admin_ecs_choropleth
# code chunk without adding new columns to dataframes here, but how?!
2017-07-17 11:31:48 +00:00
# This code will generate a table of frequencies for each spatialpointsdataframe in admin
# calculate count of ECS for fields in admin and provide percentages
2019-01-25 16:55:16 +00:00
# JK Note: need to convert from poly.counts, which uses sp() to st_covers() which uses sf() - cf. https://stackoverflow.com/questions/45314094/equivalent-of-poly-counts-to-count-lat-long-pairs-falling-inside-of-polygons-w#45337050
admin_lev1$ecs_count <- poly.counts(ecs,admin_lev1)
admin_lev1$ecs_percent<- prop.table(admin_lev1$ecs_count)
2017-07-17 11:31:48 +00:00
# calculate count of places of worship in PointX db for fields in admin and provide percentages
admin_lev1$pow_count <- poly.counts(pow_pointX,admin_lev1)
admin_lev1$pow_percent<- prop.table(admin_lev1$pow_count)
2017-07-17 11:31:48 +00:00
# calculate count of Transition for fields in admin and provide percentages
admin_lev1$transition_count <- poly.counts(transition,admin_lev1)
admin_lev1$transition_percent<- prop.table(admin_lev1$transition_count)
# calculate count of dtas for fields in admin and provide percentages
admin_lev1$dtas_count <- poly.counts(dtas,admin_lev1)
admin_lev1$dtas_percent<- prop.table(admin_lev1$dtas_count)
2017-07-17 11:31:48 +00:00
# calculate count of permaculture for fields in admin and provide percentages
admin_lev1$permaculture_count <- poly.counts(permaculture,admin_lev1)
admin_lev1$permaculture_percent<- prop.table(admin_lev1$permaculture_count)
2017-07-17 11:31:48 +00:00
# run totals for intermediate boundaries level 2
# This code will generate a table of frequencies for each spatialpointsdataframe in admin_lev2
# calculate count of ECS for fields in admin_lev2 and provide percentages
admin_lev2$ecs_count <- poly.counts(ecs,admin_lev2)
admin_lev2$ecs_percent<- prop.table(admin_lev2$ecs_count)
# calculate count of places of worship in PointX db for fields in admin_lev2 and provide percentages
admin_lev2$pow_count <- poly.counts(pow_pointX,admin_lev2)
admin_lev2$pow_percent<- prop.table(admin_lev2$pow_count)
# calculate count of Transition for fields in admin_lev2 and provide percentages
admin_lev2$transition_count <- poly.counts(transition,admin_lev2)
admin_lev2$transition_percent<- prop.table(admin_lev2$transition_count)
# calculate count of dtas for fields in admin_lev2 and provide percentages
admin_lev2$dtas_count <- poly.counts(dtas,admin_lev2)
admin_lev2$dtas_percent<- prop.table(admin_lev2$dtas_count)
2017-07-17 11:31:48 +00:00
# calculate count of permaculture for fields in admin_lev2 and provide percentages
admin_lev2$permaculture_count <- poly.counts(permaculture,admin_lev2)
admin_lev2$permaculture_percent<- prop.table(admin_lev2$permaculture_count)
2019-01-25 16:55:16 +00:00
## run totals for intermediate boundaries level 3
## This code will generate a table of frequencies for each spatialpointsdataframe in admin_lev3
## calculate count of ECS for fields in admin_lev3 and provide percentages
#admin_lev3$ecs_count <- poly.counts(ecs,admin_lev3)
#admin_lev3$ecs_percent<- prop.table(admin_lev3$ecs_count)
## calculate count of places of worship in PointX db for fields in admin_lev3 and provide percentages
#admin_lev3$pow_count <- poly.counts(pow_pointX,admin_lev3)
#admin_lev3$pow_percent<- prop.table(admin_lev3$pow_count)
## calculate count of Transition for fields in admin_lev3 and provide percentages
#admin_lev3$transition_count <- poly.counts(transition,admin_lev3)
#admin_lev3$transition_percent<- prop.table(admin_lev3$transition_count)
## calculate count of dtas for fields in admin_lev3 and provide percentages
#admin_lev3$dtas_count <- poly.counts(dtas,admin_lev3)
#admin_lev3$dtas_percent<- prop.table(admin_lev3$dtas_count)
## calculate count of permaculture for fields in admin_lev3 and provide percentages
#admin_lev3$permaculture_count <- poly.counts(permaculture,admin_lev3)
#admin_lev3$permaculture_percent<- prop.table(admin_lev3$permaculture_count)
# Import csv with population data for each level of administrative subdivision and join to spatialdataframe
# Add working directory for parish level data (not sure why I've done this)
2019-01-25 16:55:16 +00:00
# JK Note: not using parish data below - have temporarily removed the following.
# if (dir.exists("parishes") == FALSE) {
# dir.create("parishes")
# }
# download.file("http://census.edina.ac.uk/ukborders/easy_download/prebuilt/shape/England_cp_1991.zip", destfile = "parishes/parishes-1991.zip")
# unzip("parishes/parishes-1991.zip", exdir = "parishes")
# parishes <- rgdal::readOGR(dsn = "parishes", "england_cp_1991")
2018-10-16 10:13:11 +00:00
# Load population statistics for normalising data by population on admin_lev1
# TODO - consider adapting to use ONS mid-year statistics: https://www.ons.gov.uk/peoplepopulationandcommunity/populationandmigration/populationestimates/datasets/populationestimatesforukenglandandwalesscotlandandnorthernireland
2018-11-26 12:04:56 +00:00
admin_lev1_pop <- read.csv("./data/scotland_admin_2011pop.csv")
admin_lev1 <- merge(x=admin_lev1, y=admin_lev1_pop, by.x = "code", by.y = "CODE")
admin_lev1$pop_percent<- prop.table(as.numeric(admin_lev1$X2011_pop))
admin_lev2_pop <- read.csv("./data/scotland_and_wales_const_scotland_2011pop.csv")
admin_joined_lev2 <- merge(x=admin_lev2, y=admin_lev2_pop, by.x = "code", by.y = "CODE")
# Considering removing admin_lev3 calculations as this seems to be unnecessary level granularity
# admin_lev3_pop <- read.csv("./data/district_borough_unitary_ward_scotland_2011pop.csv", stringsAsFactors=FALSE)
# admin_joined_lev3 <- merge(x=admin_lev3, y=admin_lev3_pop, by="CODE")
# admin_joined_lev3$Postcode.Population <- as.numeric(gsub("[,-]","",admin_joined_lev3$Postcode.Population))
2017-07-17 11:31:48 +00:00
```
2019-01-25 16:55:16 +00:00
Perhaps the first important question to ask of these groups is, where are they? I calculated the spread of eco-congregations and transition groups across each of the 32 council areas in Scotland. Every council area in Scotland has at least one eco-congregation or transition group). The most are located in `r as.character(admin_lev1$NAME_2[which.max(admin_lev1$ecs_count)])`, with `r max(admin_lev1$ecs_count)`, whereas the mean among all the 32 council areas is `r mean(admin_lev1$ecs_count)`, with a median of `r median(admin_lev1$ecs_count)`, standard deviation of `r sd(admin_lev1$ecs_count)`, and interquartile range of `r IQR(admin_lev1$ecs_count)`. The following choropleth maps show the relative concentration of eco-congregations (indicated by yellow to red).
2017-07-17 11:31:48 +00:00
(*TODO: need to implement*) Though there are too few eco-congregations and transition groups for a numerically significant representation in any of the intermediate geographies, mapping the concentration of sites by agricultural parishes allows for a more granular visual and I include this for comparison sake. Note, for the sake of a more accurate visual communication, we have also marked out areas of Scotland that are uninhabited with hash marks on the map of agricultural parishes. (*TODO: this will be done in the final draft, once I get my image masking fixed!*).[^15571030]
2017-07-17 11:31:48 +00:00
2019-01-25 16:55:16 +00:00
```{r admin_ecs_choropleth}
# TODO:
# 1. Need to rewrite create_admin_ecs_choropleth to use ggplot
# 2. Need to augment plots to display in 2x2 plots (side-by-side comparison
# with column 1 normalised by population, i.e. admin_lev1_pop; column 2 normalised by church counts.
# Row 1 plot using polygons from admin_lev1 and row 2 plot using ploygons from admin_lev2
# 3. Need to clip choropleth polygons to buildings shapefile
2019-01-25 16:55:16 +00:00
plot(admin_lev1)
2018-11-26 15:18:27 +00:00
myplot <- ggplot() + geom_sf(data = admin_lev1_sf) + geom_point(data=as.data.frame(ecs), aes(x=X, y=Y))
# + geom_point(data=as.data.frame(ecs), aes(x=X, y=Y))
2019-01-25 16:55:16 +00:00
ggsave("figures/admin_choropleth_ecs.pdf")
2017-07-17 11:31:48 +00:00
```
2019-01-25 16:55:16 +00:00
![][Figure2]
Given the way population and places of worship are unevenly distributed across Scotland it is important to represent data in terms of relative distribution. For this study, we attempted to "normalise" our data in two different ways, (1) as shown by Figure 2 above, by taking population figures from the 2011 census (see data sheet in Appendix A) and (2) by adjusting relative to the number of places of worship in each council region.[^15914204] The latter of these two can yield particularly unexpected results. Thus, of the `r length(pow_pointX)` "places of worship" in Scotland, the highest concentration is actually the `r as.character(admin_lev1$NAME_2[which.max(admin_lev1$pow_count)])` region, with `r max(admin_lev1$pow_count)`, second is `r max( admin_lev1$pow_count[admin_lev1$pow_count!=max(admin_lev1$pow_count)] )` (`r as.character(admin_lev1$NAME_2[which.max( admin_lev1$pow_count[admin_lev1$pow_count!=max(admin_lev1$pow_count)])] )`). Rank of Council Areas by population and number of places of worship is also included in Appendix A.
2017-07-17 11:31:48 +00:00
2018-08-02 10:27:40 +00:00
```{r create_admin_proportions}
2017-07-17 11:31:48 +00:00
# Calculate factors by which ECS representation exceeds rep by population and total pow counts
admin_lev1$ecs_pop_factor <- ((admin_lev1$ecs_percent - admin_lev1$pop_percent) / admin_lev1$pop_percent)*2
admin_lev1$ecs_pow_factor <- ((admin_lev1$ecs_percent - admin_lev1$pow_percent) / admin_lev1$pow_percent)*2
admin_lev1$ecs_transition_factor <- ((admin_lev1$ecs_percent - admin_lev1$transition_percent) / admin_lev1$transition_percent)*2
admin_lev1$ecs_dtas_factor <- ((admin_lev1$ecs_percent - admin_lev1$dtas_percent) / admin_lev1$dtas_percent)*2
2017-07-17 11:31:48 +00:00
```
2019-01-25 16:55:16 +00:00
We can use this data to normalise our figures regarding Eco-Congregation Scotland communities and this draws the presence in Edinburgh of ECS communities into even sharper relief, as Edinburgh, though ranked second in terms of population and fifth in terms of places of worship, ranks first for the presence of all ECS congregations and awarded ECS congregations. However, taking population as the basis for normalisation first, we find that Edinburgh is far from the most prominent outlier. In trying to communicate this difference for a lay-audience, we have chosen to list this difference as a multiplier (i.e. there are 2.x times as many congregations as their share of population and an average figure of congregations might allow for) as this conveys the difference in a straight-forward way. Outliers where the disparity between their relative share of the total ECS footprint and their relative share of population is different by a positive ratio of more than double include the Orkney Islands (3.7 times more eco-congregations than their expected average share based on population), Argyll and Bute (`r admin_lev1[CODE=S12000023]$ecs_pop_factor)4.2x), Stirling (2.76x), and Perthshire and Kinross (2.18x). Interestingly, there are no outliers whose relative share of the total footprint of ECS is double or more in the negative direction (see Appendix A chart for full numbers).
2017-07-17 11:31:48 +00:00
2019-01-25 16:55:16 +00:00
Turning to the total of `r length(pow_pointX)` "places of worship" in Scotland, we find a slightly different picture of the relative concentration of Eco-Congregations in Scotland. In this case, the outliers are
2017-07-17 11:31:48 +00:00
Whereas our initial measurements indicated a prominent lead for Edinburgh, by normalising our data in this way we can highlight the stronger-than-expected presence of several others that might otherwise escape notice because they lie in a region with significantly lower population or numerically less places of worship. Taking the PointX data on "places of worship" in Scotland, we find a less dramatic picture, but also a slightly different one. The positive outliers include East Renfrewshire (3.4x) Edinburgh (2.9x), Stirling (2.2), West Lothian (1.9x) and Aberdeen (1.5x). Again, negative outliers are far less dramatic, with only Midlothian possessing a ratio of more than 100% negative difference from the number of "places of worship" at 1.5x *fewer*.
2018-08-02 10:27:40 +00:00
```{r create_admin_barplot}
2017-07-17 11:31:48 +00:00
# comvert admin back to dataframe for analysis
admin.df<-data.frame(admin_lev1)
2019-01-25 16:55:16 +00:00
# Goal here is to generate a grouped bar plot; https://www.r-graph-gallery.com/48-grouped-barplot-with-ggplot2/
# Need to flatten admin_lev1 based on all the count columns and generate using ggplot
2017-07-17 11:31:48 +00:00
2019-01-25 16:55:16 +00:00
admin_lev1_flattened <- melt(admin_lev1, id.vars='name')
2017-07-17 11:31:48 +00:00
2019-01-25 16:55:16 +00:00
as_tibble(admin_lev1) %>%
rownames_to_column(var = "name") %>%
gather(ecs_count, transition_count, -name)
2017-07-17 11:31:48 +00:00
2019-01-25 16:55:16 +00:00
ggplot(admin_lev1, aes(fill=condition, y=value, x=specie)) +
geom_bar(position="dodge", stat="identity")
2017-07-17 11:31:48 +00:00
2018-08-02 10:27:40 +00:00
```
2017-07-17 11:31:48 +00:00
2019-01-25 16:55:16 +00:00
We can compare the representation in these various regions against our comparison groups to see how other community-based organisations cluster in Scottish administrative districts. Here there are some significant contrasts. Scottish Community Development trusts are most intensely concentrated in the Highlands and Argyll & Bute. But, this is consistent with all the other categories, Eco-Congregations, Places of Worship, and dtass are all over-represented in this area, varying only by the degree. Edinburgh is different, here we find that Eco-Congregations and Transition projects are over-represented, while dtass are under-represented. Finally, the highlands are another strong contrast, here we find a very strong over-representation by transition towns and dtass while the representation of Eco-Congregations is relatively close to the population share for that area. The two areas of greatest contrast for Eco-Congregations from the other groups are unsurprising, Edinburgh is the location of the ECS offices, while Stirling is the area in which ECS first began (see Appendix B for full data).
2017-07-17 11:31:48 +00:00
2019-01-25 16:55:16 +00:00
![][Figure3b]
2017-07-17 11:31:48 +00:00
2019-01-25 16:55:16 +00:00
[Figure 3c, map normalised by population; choropeth map with 6 gradients. with white represented by =/- 0.5; side-by-side with agricultural parishes map; uninhabited areas greyed out]
2017-07-17 11:31:48 +00:00
2019-01-25 16:55:16 +00:00
[Figure 4, normalised by PointX data; also including agricultural parishes etc. as above]
2017-07-17 11:31:48 +00:00
# Appendix A
```{r pander_admin_table}
admin.shortened <- admin_lev1[,c(7,12:22)]
2017-07-17 11:31:48 +00:00
# Output CSV files for various levels of admin
write.csv(admin, "derivedData/admin.csv", row.names=FALSE)
write.csv(admin_lev2, "derivedData/admin_lev2.csv", row.names=FALSE)
2019-01-25 16:55:16 +00:00
# write.csv(admin_lev3, "derivedData/admin_lev3.csv", row.names=FALSE)
2017-07-17 11:31:48 +00:00
write.csv(admin.shortened, "derivedData/admin.csv", row.names=FALSE)
write.csv(ecs, "derivedData/ecs.csv", row.names=FALSE)
write.csv(transition, "derivedData/transition.csv", row.names=FALSE)
write.csv(permaculture, "derivedData/permaculture.csv", row.names=FALSE)
write.csv(dtas, "derivedData/dtas.csv", row.names=FALSE)
2017-07-17 11:31:48 +00:00
# write.csv(simd, "derivedData/simd.csv", row.names=FALSE)
admin.shortened<-data.frame(admin.shortened)
# Output mmd tables using pander
panderOptions("digits", 2)
pander(admin.shortened)
```
2018-08-02 10:27:40 +00:00
# Citations
2017-07-17 12:41:30 +00:00
[^15541312]:This research was jointly funded by the AHRC/ESRC under project numnbers AH/K005456/1 and AH/P005063/1.
2017-07-17 11:31:48 +00:00
[^158261118]: This is not to say that there have been no collaborations before 2000, noteworthy in this respect is the WWF who helped to found the Alliance of Religion and Conservation (ARC) in 1985.
[^159141043]: This suggestion should be qualified - RSPB would greatly exceed ECS both in terms of the number of individual subscribers and budget. The RSPB trustee's report for 2013-2014 suggests that their member base was 1,114,938 people across Britain with a net income of £127m - the latter of which exceeds the Church of Scotland. If we adjust this based on the Scottish share of the population of the United Kingdom as of the 2011 census (8.3%) this leaves us with an income of £9.93m. The British charity commission requires charities to self-report the number of volunteers and staff, and from their most recent statistics we learn that RSPB engaged with 17,600 volunteers and employed 2,110 members of staff. Again, adjusted for population, this leaves 1,460 volunteers in Scotland and 176 staff. However, if we measure environmental groups based on the number of sites they maintain, RSPB has only 40 reserves with varying levels of local community engagement. For comparison, as of Sep 14 2015, Friends of the Earth Scotland had only 10 local groups (concentrated mostly in large urban areas). Depending on how one measures "volunteerism," it may be possible that ECS has more engaged volunteers in Scotland as well - if each ECS group had only 4 "volunteers" then this would exceed RSPB.
[^15541313]: Kidwell, Jeremy. (2016). Eco-Congregation Scotland, 2014-2016 [dataset]. University of Edinburgh. http://dx.doi.org/10.7488/ds/1357.
[^15541342]:My dataset on transition towns will be made available later in 2016. Initial data was aquired from the Transition Scotland website http://www.transitionscotland.org/transition-in-scotland on December 10, 2014. We are currently in the process of collaboratively generating a more up-to-date dataset which will reflect their collaboration with SCCAN.
2017-07-17 14:39:59 +00:00
[^177171536]: For further detail on Dataset generation, see Kidwell, Forthcoming, 2018.
2017-07-17 11:31:48 +00:00
[^158261232]:Data was acquired from the Development Trusts Association website, http://www.dtascot.org.uk, accessed on 20 July 2015. As above, we are currently in the process of active collaboration with volunteers from the DTAS to co-generate a new dataset.
[^15541614]:PointX data for "Landscape Data" items is sourced from Ordnance Survey Land-Line and MasterMap(R) and the data points are augmented with additional information provided through research by PointX staff, and data aquired from unidentified "local data companie(s)" and the "118 Information" database (see: http://www.118information.co.uk). This data is under license and cannot be made available for use. It is important to note that I became aware of inaccuracies in this dataset over the course of use and subsequently generated my own dataset in collaboration with churches in Scotland. This will be made available later in 2016. I am in active conversation with OS about improving the quality of the data in PointX regarding places of worship.
[^15826124]:Interview with Margaret Warnock, 29 Aug 2014.
[^158261210]:From http://www.forthenvironmentlink.org, accessed 12 July 2015.
[^1554162]:From the Transition map key, "Green pins are 'official' groups
Blue pins are active communities who are connected to the Scottish Transition network Yellow pins show interest in this area"
[^15571030]:This was calculated by calculating a 10m wide footprint for every postcode in Scotland, areas which are not within 10m of a postcode (as of May 2014) are counted as uninhabited.
[^159142242]: Fiona Tweedia, *Ecumenical Audit: Questionnaire Findings* (2014).
[^15914204]:See note above regarding the data used from the PointX POI database. Note, for our research,we filtered out religious groups not represented within the Eco-Congregation footprint. We discuss representation by tradition and religion further below.