View source: R/stickplot.dat.arrows.R
stickplot.dat.arrows | R Documentation |
windspeed and direction helper functions for base plotting
stickplot.dat.arrows(DateTime, WSPD, WD, data, ...)
DateTime |
Date and time field as.POSIXct |
WSPD |
Wind speed in m/s |
WD |
Wind direction in degrees |
data |
data.frame() |
draws line segments in the direct of wind with length corresponding to speed.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.