create_map | R Documentation |
Create aesthetic map of area around a postcode
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" )
postcode |
A UK postcode, e.g. "EH3 7HG" |
shape |
|
shapefiles_folder |
Folder containing OS local map shapefile |
y_dist |
If shape = |
x_dist |
If shape = |
radius |
If shape = |
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 |
A ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.