ray_path | R Documentation |
This function calculates the segments great circles using the (lat, lon)
coordinates obtained with ray
or ray_source
.
It returns a LINESTRING geometry that is ready for plot.
ray_path(x, y)
x |
vector with the longitude obtained with |
y |
vector with the latitude obtained with |
sfc_LINESTRING sfc
{ # Coelho et al. (2015): input <- system.file("extdata", "uwnd.mon.mean_200hPa_2014JFM.nc", package = "raytracing") b <- betaks(u = input) rt <- ray(betam = b$betam, u = b$u, lat = b$lat, K = 3, itime = 30, x0 = -135, y0 = -30, dt = 6, direction = -1) rp <- ray_path(x = rt$lon, y = rt$lat) plot(rp, axes = TRUE, graticule = TRUE) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.