stickplot.dat.arrows: windspeed and direction helper functions for base plotting

View source: R/stickplot.dat.arrows.R

stickplot.dat.arrowsR Documentation

windspeed and direction helper functions for base plotting

Description

windspeed and direction helper functions for base plotting

Usage

stickplot.dat.arrows(DateTime, WSPD, WD, data, ...)

Arguments

DateTime

Date and time field as.POSIXct

WSPD

Wind speed in m/s

WD

Wind direction in degrees

data

data.frame()

Value

draws line segments in the direct of wind with length corresponding to speed.

Examples

## Not run: 
# wx.dat2005=read.table("https://www.ndbc.noaa.gov/view_text_file.php?filename=lonf1h2005.txt.gz&dir=data/historical/stdmet/",sep="",header=T,na.strings=c("99","999","9999.0"))

# plot(WSPD~DateTime.EST,wx.dat2005.tmp,type="n",ylab="Wind Speed (m/s)",ylim=c(-20,30))
# stickplot.dat.arrows(DateTime.EST,WSPD,WD,wx.dat2005.tmp,col="green",lty=1,lwd=1)

## End(Not run)

SwampThingPaul/AnalystHelper documentation built on Nov. 3, 2024, 10:02 a.m.