create_map: Create aesthetic map of area around a postcode

View source: R/create_map.R

create_mapR Documentation

Create aesthetic map of area around a postcode

Description

Create aesthetic map of area around a postcode

Usage

create_map(
  postcode,
  shape = "rectangle",
  shapefiles_folder = "/Users/Shared/data/shapefiles/local_map",
  y_dist = 2500,
  x_dist = y_dist * 2/3,
  radius = 1500,
  water_colour = "#C0C0C0",
  land_colour = "#002240",
  road_colour = "#C0C0C0"
)

Arguments

postcode

A UK postcode, e.g. "EH3 7HG"

shape

"circle" or "rectangle" to be drawn. "circle" uses create_circle() "rectangle" uses create_box()

shapefiles_folder

Folder containing OS local map shapefile

y_dist

If shape = "rectangle", distance (in metres) north and south of the location to be displayed. Map shows y_dist metres north, and y_dist metres south.

x_dist

If shape = "rectangle", distance (in metres) east and west of the location to be displayed. Map shows y_dist metres east, and y_dist metres west.

radius

If shape = "circle", radius (in metres) around the location to be displayed.

water_colour

Hex code for colour to display water areas

land_colour

Hex code for colour to display land

road_colour

Hex code for colour to display roads

Value

A ggplot object


n-fanton/aesmapr documentation built on May 7, 2022, 12:09 a.m.