Web Content Display

Web Content Display (CoastWatch User Forum)

The NOAA CoastWatch Forum provides information in several categories.  The information is relevant to CoastWatch products and software (https://coastwatch.noaa.gov)  and vary in technical details.  For questions and issues not addressed here,  start a thread in the appropriate category or contact the CoastWatch HelpDesk (coastwatch.info@noaa.gov).  Please note our Privacy Policy (https://www.noaa.gov/privacy.html) and that this is a public forum.  All information is voluntarily and anonymous submissions are accepted pending review prior to posting. 

Forums

Back

Wind/Current Vector Plotting Example Code

TO
Thomas Oliver, modified 4 Years ago.

Wind/Current Vector Plotting Example Code

Youngling Posts: 2 Join Date: 6/12/17 Recent Posts

Hey Guys! Some folks mentioned that they wanted to try out plotting vector data (U/V wind or current, for example) along a track. I've mocked up some track data and show 4 different ways to plot the track with arrows overlaid. Basically, from simple to slightly more complex, I show a total base graphic method, a package-dependent base method (OceanView), a pure ggplot data (geom_segment), and my visual favorite in ggplot using geom_arrow from the metR package. Enjoy!!!