Description Usage Format Details Source References Examples
This dataset contains the coordinates of the boundaries of all 32 boroughs of the Greater London area.
1 |
A data frame with 45341 observations on the following 3 variables.
name
Name of the borough.
x
The "easting" component of the coordinate, see details.
y
The "northing" component of the coordinate, see details.
Map data was made available through the Ordnance Survey Open Data initiative. The data use the National Grid coordinate system, based upon eastings (x
) and northings (y
) instead of longitude and latitude.
The name
variable covers all 32 boroughs in Greater London: Barking & Dagenham
, Barnet
, Bexley
, Brent
, Bromley
, Camden
, Croydon
, Ealing
, Enfield
, Greenwich
, Hackney
, Hammersmith & Fulham
, Haringey
, Harrow
, Havering
, Hillingdon
, Hounslow
, Islington
, Kensington & Chelsea
, Kingston
, Lambeth
, Lewisham
, Merton
, Newham
, Redbridge
, Richmond
, Southwark
, Sutton
, Tower Hamlets
, Waltham Forest
, Wandsworth
, Westminster
https://www.ordnancesurvey.co.uk/opendatadownload/products.html
Contains Ordinance Survey data, Crown copyright and database right [2012], used under the Open Data License.
OpenIntro, openintro.org
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | data(london_boroughs)
## Not run:
# install.packages("ggplot2")
# install.packages("RColorBrewer")
library(ggplot2)
library(RColorBrewer)
data(murders)
LB <- london_boroughs
mtab <- table(murders$borough)
LB$nmurders <- rep(mtab, rle(as.character(LB$name))$lengths)
p <- ggplot()
p +
geom_polygon(data=LB, aes(x=x, y=y, group = name, fill = nmurders),
colour="white" ) +
scale_fill_gradientn(colours = brewer.pal(7, "Blues"),
limits=range(LB$nmurders))
## End(Not run)
|
Loading required package: RCurl
Loading required package: bitops
Loading required package: maps
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.