Description Usage Arguments Value See Also Examples
Adds axes to the internal region of an OSM plot.
1 2 3 4 5 6 7 8 9 10 |
map |
A |
colour |
Colour of axis (determines colour of all elements: lines, ticks, and labels). |
pos |
Positions of axes and labels relative to entire plot device. |
alpha |
alpha value for semi-transparent background surrounding axes and labels (lower values increase transparency). |
fontsize |
Size of axis font (in |
fontface |
Fontface for axis labels (1:4=plain,bold,italic,bold-italic). |
fontfamily |
Family of axis font (for example, ' |
... |
Mechanism to allow many parameters to be passed with alternative
names ( |
Modified version of map
with axes added.
1 2 3 4 5 6 7 8 9 10 11 12 | bbox <- get_bbox (c (-0.13, 51.5, -0.11, 51.52))
map <- osm_basemap (bbox = bbox, bg = "gray20")
map <- add_osm_objects (map, london$dat_BNR, col = "gray40")
map <- add_axes (map)
print (map)
# Map items are added sequentially, so adding axes prior to objects will
# produce a different result.
map <- osm_basemap (bbox = bbox, bg = "gray20")
map <- add_axes (map)
map <- add_osm_objects (map, london$dat_BNR, col = "gray40")
print_osm_map (map)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.