Description Usage Arguments Value Author(s) See Also Examples
This function plots/overlays arrows or segments on a map.
1 2 3 4 5 6 7 | PlotArrowsOnStaticMap(MyMap, lat0, lon0, lat1 = lat0, lon1 = lon0,
TrueProj = TRUE, FUN = arrows, add = FALSE, verbose = 0,
...)
|
MyMap |
map image returned from e.g. |
lat0 |
latitude valuesof points FROM which to draw. |
lon0 |
longitude values of points FROM which to draw. |
lat1 |
latitude valuesof points TO which to draw. |
lon1 |
longitude values of points TO which to draw. |
TrueProj |
set to FALSE if you are willing to accept some degree of inaccuracy in the mapping. In that case, the coordinates of the image are in lat/lon and the user can simply overly points/lines/axis without worrying about projections |
FUN |
, plotting function to use for overlay; typical choices would be arrows and segments |
add |
start a new plot or add to an existing |
verbose |
level of verbosity |
... |
further arguments to be passed to |
return value of FUN
Markus Loecher
PlotOnStaticMap arrows
1 2 3 4 | MyMap <- GetMap(center=c(lat=40.7,lon=-74), zoom=11)
PlotArrowsOnStaticMap(MyMap, lat0=40.69, lon0=-73.9, lat1=40.71, lon1=-74.1, col = 'red')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.