View source: R/createConnectivityWeb.R
createConnectivityWeb | R Documentation |
Function to create a sf dataframe with lines between connectivity zones
createConnectivityWeb( dfr, xCol = "lon", yCol = "lat", crs = sf::NA_crs_, wrapDateline = TRUE )
dfr |
- a dataframe (or sf dataframe) with lat/lon or xy locations representing connectivity zones |
xCol |
- name of column with x-axis (longitude) location |
yCol |
- name of column with y-axis (latitude) location |
crs |
- coordinate reference system (object that can be converted to an |
wrapDateline |
- flag (T/F) to use 0 to 360 rather than -180 to 180 range for longitudes |
Creates a sf dataframe with a "web" of directed lines connecting connectivity
zones. Coordinates for "start" and "end" zones are also given. If dfr
is an sf
dataframe, then the input value for crs
is ignored and taken from dfr
.
a sf dataframe. The 'geometry' column contains lines which connect point locations identifying connectivity zones.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.