rasterToVectorMap: Convert speed, dir rasters to a vector map

Description Usage Arguments Details Value

Description

rasterToVectorMap Converts spd, dir datafame to vector plot in a ggmap object

Usage

1
2
rasterToVectorMap(spd, dir, lat, lon, zoom, maptype, colorscale = "discrete",
  axis_labels = TRUE)

Arguments

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)

Details

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.

Value

ggmap object


nwagenbrenner/windtools documentation built on May 24, 2019, 10:56 a.m.