Description Usage Arguments Details Value
rasterToVectorMap
Converts spd, dir datafame to vector plot in a ggmap object
1 2 | rasterToVectorMap(spd, dir, lat, lon, zoom, maptype, colorscale = "discrete",
axis_labels = TRUE)
|
spd |
raster of wind speeds |
dir |
raster of wind directions (direction wind is coming from; 0-360) |
lat |
center lat for ggmap object |
lon |
center lon for ggmap object |
zoom |
zoom level for ggmap object (1-14) |
maptype |
basemap for ggmap object (terrain, satellite, hybrid) |
colorscale |
discrete or continuous (default is discrete) |
axis_labels |
TRUE or FALSE (default is TRUE) |
This function takes two rasters (speed and direction) and converts them to a vector plot of wind overlaid on a Google Maps basemap. The output is a ggmap object.
ggmap object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.