raster2VectorMap: Make a vector map from wind speed and direction rasters

Description Usage Arguments Details Value

Description

raster2VectorMap returns a ggmap object of the vector field

Usage

1
raster2VectorMap(df, lat, lon, zoom, maptype, scale_factor = 1000)

Arguments

df

dataframe

lat

center lat of Google Maps image

lon

center lon of Google Maps image

zoom

zoom for Google Maps image (1-20)

maptype

type of Google Maps image (terrain, hybrid, satellite, roadmap)

scale_factor

optional scaling factor to adjust vector length

Details

This fucntion returns a vector plot of the wind field (supplied as 2 rasters: wind direction and wind speed) overlayed on a static Google Maps image.

Value

ggmap object representation of the wind field


nwagenbrenner/windtools documentation built on July 27, 2018, 12:04 p.m.