Learn R Programming

osmplotr (version 0.1-3)

osmplotr: osmplotr.

Description

Produces customisable images of OpenStreetMap (OSM) data and enables data visualisation using OSM objects. Extracts data using the overpass API. Contains the following functions, data, and vignettes.

Arguments

Data Functions

ll{ 'extract_highway' Download a single highway 'extract_highways' Download a series of named highways 'extract_osm_objects' Download arbitrary OSM objects }

Basic Plotting Functions (without data)

ll{ 'add_axes' Overlay longitudinal and latitudinal axes on plot 'add_colourbar' Overlay a scaled colourbar for data added with 'add_osm_surface' 'add_osm_objects' Overlay arbitrary OSM objects 'make_osm_map' Automate map production with structures defined in 'osm_structures' 'osm_structures' Define structures and graphics schemes for automating map production 'plot_osm_basemap' Initiate a plotting device for an OSM map }

Advanced Plotting Functions (with data)

ll{ 'add_osm_groups' Overlay groups of objects using specified colour scheme 'add_osm_surface' Overlay data surface by interpolating given data }

Colour Manipulation Functions

ll{ 'adjust_colours' Lighted or darken given colours by specified amount 'colour_mat' Generate continuous 2D spatial matrix of colours }

Other Functions

ll{ 'click_map' Return lat-lon coordinates of series of clicked points 'connect_highways' Connect lists of highways (used in 'highways2polygon') 'get_bbox' return bounding box from input vector 'highways2polygon' Return a polygonal boundary circularly connecting a given series of named highways 'order_lines' Spatially order highway lines in a given set of OSM data }

Data

ll{ 'london' OSM Data from a small portion of central London }

Vignettes

ll{ 'downloading-data' Describes how 'london' data were downloaded 'making-maps' Main package vignette }