updates
This commit is contained in:
parent
626357c98b
commit
7138b39e11
3
00-Authors.Rmd
Normal file
3
00-Authors.Rmd
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# About the Author {-}
|
||||||
|
|
||||||
|
Jeremy Kidwell is lecturer in Theological Ethics at the University of Birmingham
|
|
@ -2,5 +2,40 @@
|
||||||
|
|
||||||
# Challenge 2: Work with existing data
|
# Challenge 2: Work with existing data
|
||||||
|
|
||||||
Part 1, getting data
|
Part 1, getting data:
|
||||||
- Download some West Midlands crime statistics:
|
- Download some West Midlands crime statistics using the following file: [https://github.com/kidwellj/intro_to_geospatial_carto/raw/master/data/westmids_crime.zip] - note I've gotten these from here: [https://data.police.uk/](https://data.police.uk/).
|
||||||
|
- There will be a whole bunch of files in there (2 years worth of monthly crime stats for the West Midlands). Unzip the file (by double-clicking on it), then find the folder `2018-12` and inside that the file `2018-12-west-midlands-street.csv`
|
||||||
|
- Import the `2018-12-west-midlands-street.csv` data file into your carto account. In map view click "Add Layer" then click on "Connect Dataset", make sure "Data file" is selected and then click and drag the csv file onto "Drag and drop your file" (or click on "Browse" and locate it that way).
|
||||||
|
- Click "Add layer" and the file will be uploaded into carto as a new data layer. This may take a wee while, so be patient.
|
||||||
|
- Now you have a whole lot of new dots! Let's make those dots more meaningful with some visualisation tricks you've just learned in the previous challenge.
|
||||||
|
|
||||||
|
Part 2, visualisation by category:
|
||||||
|
- Switch your map style to "Category" and switch the column to "crime_type"
|
||||||
|
- Carto does a lot of the hard work for you here, but you might want to do a bit of tweaking.
|
||||||
|
- Add some transparency so that overlapping dots darken a spot (change the number after marker fill from 0.9 to 0.6 or lower and watch what happens.
|
||||||
|
- Change "marker stroke" (this is the outline for each dot) to "0" - now they overlap in a more tidy way
|
||||||
|
- There are a lot of categories here, and some of the colours assigned by Carto may be light/dark versions of the same colour. This can be a bit confusing as we're working with overlapping transparency. It's best if we can make sure all of the colours are unique. Experiment a bit with using different shapes or icons to differentiate categories. To change to a shape/icon click on "img" to the right of the category. Consider taking a diversion into the noun project here if you'd like to spend a bit more time on this (below).
|
||||||
|
- Choose a basemap that looks nice for this map.
|
||||||
|
- Set up your map so that it displays information on hover, I'd recommend crime_type, last_outcome_category, and reported_by - but will leave the details to you.
|
||||||
|
- Polish off your map with a title!
|
||||||
|
- This map does a good job of showing individual incidence of crimes and works best at a close zoom (level 15 or higher). Let's create a new layer now that shows a different kind of visualisation at a wider zoom.
|
||||||
|
|
||||||
|
Part 3, visualisation by density:
|
||||||
|
- Return to the main carto dashboard by clicking on "Maps" and "New Map"
|
||||||
|
- From the add datasets window that appears, select from "Your Datasets" and then pick out your crime data table (default name is "table_2018_12_west_midlands_street" unless you've changed it). We're going to add the same data to our map as a new layer and configure it differently.
|
||||||
|
- Once the new layer has been added, turn off display for the other two tables (using the small slider on the right of the title).
|
||||||
|
- On the new layer you've just added, open the pane for "filters" (icon is a bar charts).
|
||||||
|
- Under "select a column to filter by" choose "crime_type".
|
||||||
|
- Now choose just one specific type of crime to focus on (your choice). You can do this quickly by clicking on "clear selection" and then selecting a single option.
|
||||||
|
- Zoom out to a wider area, zoom level 14 or 13.
|
||||||
|
- Let's change the display on this - go back to map layer wizard. Try some different options which can help to show the density of crime incidence for the category you've chosen. I recommend that you try using a "density" or "heatmap". Tinker with settings for your map until it visually communicates the information in an effective way.
|
||||||
|
- Now that you've finished putting together a map, let's add some extra bits to polish off the display.
|
||||||
|
- Click on "options" on the bottom left side; then add a "fixed title" and "fixed description". Tinker with other options until you have a map you'd like to share.
|
||||||
|
- Change the carto title for your map (very top of the window in your web browser, on the left side)
|
||||||
|
- Cick on "Publish" in the upper right hand corner and send the link to a friend!
|
||||||
|
|
||||||
|
## Possible diversion (icons!):
|
||||||
|
|
||||||
|
If you want to spend some extra time on this, create yourself an account on [the Noun Project](https://thenounproject.com/) and download icons for each crime category. Please note: there are many icons here on a variety of different licenses. You should aim for free ones which have been produced under an open CreativeCommons license.
|
||||||
|
|
||||||
|
For more on licenses, have a watch on my [data ethics course](https://github.com/kidwellj/data_ethics-law_course), session two.
|
||||||
|
|
8
Makefile
Normal file
8
Makefile
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
pdf:
|
||||||
|
Rscript --quiet _render.R "bookdown::pdf_book"
|
||||||
|
|
||||||
|
gitbook:
|
||||||
|
Rscript --quiet _render.R "bookdown::gitbook"
|
||||||
|
|
||||||
|
all:
|
||||||
|
Rscript --quiet _render.R
|
7
_bookdown.yml
Normal file
7
_bookdown.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
book_filename: "data_ethics-law_course"
|
||||||
|
chapter_name: "Chapter "
|
||||||
|
repo: https://github.com/kidwellj/data_ethics-law_course
|
||||||
|
output_dir: docs
|
||||||
|
rmd_files: ["index.Rmd", "01-Overview.Rmd", "02-Session1.Rmd", "03-Session2.Rmd", "04-Session3.Rmd", "05-Session4.Rmd"]
|
||||||
|
clean: [packages.bib, bookdown.bbl]
|
||||||
|
new_session: yes
|
17
_output.yml
Normal file
17
_output.yml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
bookdown::gitbook:
|
||||||
|
css: style.css
|
||||||
|
split_by: chapter
|
||||||
|
config:
|
||||||
|
toc:
|
||||||
|
collapse: subsection
|
||||||
|
before: |
|
||||||
|
<li><a href="./">An OER on the ethics and legality of working with digital data in research</a></li>
|
||||||
|
after: |
|
||||||
|
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
|
||||||
|
bookdown::pdf_book:
|
||||||
|
includes:
|
||||||
|
in_header: preamble.tex
|
||||||
|
latex_engine: xelatex
|
||||||
|
citation_package: natbib
|
||||||
|
bookdown::epub_book:
|
||||||
|
stylesheet: style.css
|
2058
data/MosquesAug18Extended.csv
Normal file
2058
data/MosquesAug18Extended.csv
Normal file
File diff suppressed because it is too large
Load diff
1
data/all_churches_2016.geojson
Normal file
1
data/all_churches_2016.geojson
Normal file
File diff suppressed because one or more lines are too long
BIN
data/ancient_woodlands_wmidlands.zip
Normal file
BIN
data/ancient_woodlands_wmidlands.zip
Normal file
Binary file not shown.
1
data/ecochurch_groups_2017.geojson
Normal file
1
data/ecochurch_groups_2017.geojson
Normal file
File diff suppressed because one or more lines are too long
22
data/forestchurch_groups_2017_11_12_gb_ukm.csv
Normal file
22
data/forestchurch_groups_2017_11_12_gb_ukm.csv
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
cartodb_id,the_geom,name,description
|
||||||
|
1,0101000020E610000050786407F011FCBFF8CA170F4AE54A40,Bradford SoulSpace Forest Church,For more information visit: http://www.mysticchrist.co.uk/blog/post/bradford_soulspace_forest_church
|
||||||
|
2,0101000020E6100000DFC14F1C40DF0CC0C59272F739384A40,Mid Wales Forest Church,Mid Wales Forest Church meets in different locations every third Sunday. More info here (http://www.mysticchrist.co.uk/blog/post/mid_wales_forest_church).
|
||||||
|
3,0101000020E6100000B189CC5CE0F2FDBF9C8713984E9B4940,Salisbury Plain Forest Church,"Every Sunday morning, in all weathers. Click here (http://www.mysticchrist.co.uk/blog/post/salisbury_plain_forest_church) for more info."
|
||||||
|
4,0101000020E6100000011764CBF275D5BF0C957F2DAFE04940,St Albans Forest Church,Click here (http://www.mysticchrist.co.uk/blog/post/st_albans_forest_church) for more information.
|
||||||
|
5,0101000020E6100000A1DAE044F46BABBF0186E5CFB7C74A40,Oasis Church Grimsby Forest Church,Find out more here. (http://www.oasisacademywintringham.org/content/forest-church)
|
||||||
|
6,0101000020E6100000365B79C9FFE40AC0EFA99CF6949E4A40,Dyffryn Clwyd Forest Church,Find out more here. (http://www.mysticchrist.co.uk/blog/post/dyffryn_clwyd_forest_church)
|
||||||
|
7,0101000020E6100000EC1516DC0FB8F9BF02F566D47C7D4B40,Tyneside Forest Church,We seek to encounter God in the green spaces and wild places around Newcastle upon Tyne and Tyneside. More info here. (http://www.mysticchrist.co.uk/blog/post/tyneside_forest_church)
|
||||||
|
8,0101000020E6100000E5B8533A58BF05C0D1048A58C4924940,Avalon Forest Church,"Meeting 2–4pm the first Sunday after the festivals of the eight-fold calendar, more info on this page. (http://www.mysticchrist.co.uk/blog/post/avalon_forest_church)"
|
||||||
|
9,0101000020E610000041D653ABAF6EFDBF266F8099EF284A40,Ancient Arden Forest Church,We meet close to or on the eight-fold Celtic calendar. For more info click here (http://www.mysticchrist.co.uk/blog/post/ancient_arden_forest_church).
|
||||||
|
10,0101000020E610000025B20FB22C98EDBF691CEA7761B74940,Oakwood Forest Church,Click here (http://www.mysticchrist.co.uk/blog/post/oakwood_forest_church) for more info.
|
||||||
|
11,0101000020E61000006E35EB8CEFCBF6BF6403E962D3E44940,Wychwood Forest Church,"Meeting monthly, click here (http://www.mysticchrist.co.uk/blog/post/wychwood_forest_church) for more info."
|
||||||
|
12,0101000020E6100000CFA2772AE09EF7BFAD307DAF21684940,New Forest Forest Church,We meet on the 2nd Sunday of each month at 4pm in the car park of Hatchet Pond. More info. (http://www.mysticchrist.co.uk/blog/post/new_forest_forest_church)
|
||||||
|
13,0101000020E610000021E4BCFF8FEA5BC0DCB930D28B984140,Flagstaff Forest Church,FFC have not created a landing page
|
||||||
|
14,0101000020E61000006E4E25034015F4BF0CAEB9A3FFDF4940,Oxford Forest Church,Click here (http://www.mysticchrist.co.uk/blog/post/oxford_forest_church) for more info.
|
||||||
|
15,0101000020E6100000DE0EC3FD36DAFBBFB02770A1E1F44A40,Warfdale Forest Church,"For more information, visit: http://www.mysticchrist.co.uk/blog/post/wharfedale_forest_church"
|
||||||
|
16,0101000020E61000003CE98E0FC4C39DBF6A4A5755D4CA4940,Wilcume Forest Church,"For more information, please visit: http://www.mysticchrist.co.uk/blog/post/wilcume_forest_church"
|
||||||
|
17,0101000020E61000000AA8CBBD1BE600C0AE0CAA0D4EF24940,Cheltenham Forest Church,http://www.mysticchrist.co.uk/blog/post/cheltenham_forest_church
|
||||||
|
18,0101000020E61000009139E004F0C0F2BFFCC7427408584940,Isle Of Wight Forest Church ,http://www.mysticchrist.co.uk/blog/post/isle_of_wight_forest_church
|
||||||
|
19,0101000020E6100000CBE08332E85FE23FB93A5B9B21DE4940,Essex Forest Church,For more information visit http://www.mysticchrist.co.uk/blog/post/essex_forest_church
|
||||||
|
20,0101000020E6100000A298BC0166FEF3BF64E597C118964A40,Pleasley Forest Church,More info at: http://www.mysticchrist.co.uk/blog/post/pleasley_forest_church
|
||||||
|
21,0101000020E6100000F96F4B9AF518C4BF813518343E694940,Open Sky Forest Church,http://www.mysticchrist.co.uk/blog/post/open_sky_forest_church
|
|
1
data/imd_2015_wmidlands.geojson
Normal file
1
data/imd_2015_wmidlands.geojson
Normal file
File diff suppressed because one or more lines are too long
BIN
data/sssi_wmidlands.gpkg
Normal file
BIN
data/sssi_wmidlands.gpkg
Normal file
Binary file not shown.
1
data/uk_pilgrimage_routes_2017.geojson
Normal file
1
data/uk_pilgrimage_routes_2017.geojson
Normal file
File diff suppressed because one or more lines are too long
24
index.Rmd
Normal file
24
index.Rmd
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
title: "what can I do with stuff I find online?"
|
||||||
|
author: "Alex Fenlon and Jeremy H. Kidwell"
|
||||||
|
date: "2016-12-02"
|
||||||
|
site: bookdown::bookdown_site
|
||||||
|
documentclass: book
|
||||||
|
bibliography: [book.bib]
|
||||||
|
biblio-style: apalike
|
||||||
|
link-citations: yes
|
||||||
|
github-repo: kidwellj/data_ethics-law_course
|
||||||
|
url: 'http\://jeremykidwell.info/files/bookdown/data_ethics-law_course/'
|
||||||
|
# cover-image:
|
||||||
|
description: "A short course on the ethics and legality of working with data"
|
||||||
|
---
|
||||||
|
|
||||||
|
# Introduction to the module
|
||||||
|
|
||||||
|
This module has been designed to enable independent learners to aquire knowledge about contemporary legal and methodological issues surrounding digital data and research, and to provoke some thinking on the big questions that underpin some of the more practical issues we discuss here.
|
||||||
|
|
||||||
|
Ideally, a student should expect to invest at least four hours in independent learning activities (reading articles, writing reflections, etc.) over the course of a week. It should be possible to work through this a bit more slowly and in-depth. We have tried to point to a range of resources, both those which are accessible and those which are challenging. It is also worth noting that this module is included in a broader effort underway at the University of Birmingham, the "Birmingham Digital" which has other modules working alongside this one.
|
||||||
|
|
||||||
|
For the week, we have divided content into five parts. Included here (and below) is a brief introduction to the course. There are four additional sessions, which each have associated activities which explore more specific areas within the topic we are exploring here.
|
||||||
|
|
||||||
|
Now let's dive into the big issues together! We will explain more along the way as we go along together.
|
Loading…
Reference in a new issue