Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add content to test computer setup #105

Closed
Robinlovelace opened this issue Oct 3, 2019 · 1 comment
Closed

Add content to test computer setup #105

Robinlovelace opened this issue Oct 3, 2019 · 1 comment

Comments

@Robinlovelace
Copy link
Member

This code should work, resulting in the output below:

library(stats19)
#> Data provided under OGL v3.0. Cite the source and link to:
#> www.nationalarchives.gov.uk/doc/open-government-licence/version/3/
library(tidyverse)
library(tmap) # installed alongside mapview
crashes = get_stats19(year = 2017, type = "ac")
#> Files identified: dftRoadSafetyData_Accidents_2017.zip
#>    http://data.dft.gov.uk.s3.amazonaws.com/road-accidents-safety-data/dftRoadSafetyData_Accidents_2017.zip
#> Attempt downloading from:
#> Data saved at /tmp/RtmpW7BLTK/dftRoadSafetyData_Accidents_2017/Acc.csv
#> Reading in:
#> /tmp/RtmpW7BLTK/dftRoadSafetyData_Accidents_2017/Acc.csv
crashes_iow = crashes %>% 
  filter(local_authority_district == "Isle of Wight") %>% 
  format_sf()
#> 0 rows removed with no coordinates
  
# basic plot
plot(crashes_iow)
#> Warning: plotting the first 9 out of 30 attributes; use max.plot = 30 to
#> plot all

Created on 2019-10-03 by the reprex package (v0.3.0)

@Robinlovelace
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant