[R] Seeking Assistance: Plotting Sea Current Vectors in R
Jim Lemon
drj|m|emon @end|ng |rom gm@||@com
Wed Jul 26 00:58:57 CEST 2023
Hi Kostas,
The function vectorField in the plotrix package may do what you want.
See the example.
Jim
On Tue, Jul 25, 2023 at 9:30 PM konstantinos christodoulou
<konstantinos.christodoulou1 using gmail.com> wrote:
>
> Dear Rcommunity,
>
> I hope this email finds you well. I am writing to seek your assistance with
> a data visualization problem I am facing while working with R.
>
> Problem Description:
>
> I have a dataframe named "df" containing the following columns:
> "longitude", "latitude", "sea_currents_mag", and "sea_currents_direction".
> The dataframe includes sea current estimations, with information about
> magnitude (m/s) and direction (degrees) at various longitude and latitude
> coordinates. The study domain covers the Eastern Mediterranean Sea (23E to
> 36W) and extends from 31S to 37N. It is important to note that the
> longitude and latitude coordinates are not evenly spaced across the domain.
>
> Objective: I am seeking guidance on how to create a plot that visualizes
> the sea current vectors (arrows) at each coordinate. Additionally, if
> possible, I would like the borders of the surrounding countries to be
> included in the plot to provide geographic context.
>
> Specific Requests:
>
> 1. Help with plotting sea current vectors (arrows) based on
> "sea_currents_mag" and "sea_currents_direction" at each corresponding
> longitude and latitude coordinate.
> 2. Assistance with including the borders of the surrounding countries in
> the plot to provide geographic context.
>
> I would highly appreciate any advice, code examples, or packages that could
> assist me in achieving this visualization goal.
>
> Thank you very much for taking the time to read my email, and I look
> forward to any assistance you can provide.
>
> Best regards,
> Kostas
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list