Description Usage Arguments Value Examples
Builds a spatial join between a flow dataset and a spatial features layer (as a map background)
1 | flowjointure(geom, bkg, DF.flow, origin, destination, DF.point, id, x, y)
|
geom |
the geometry of the spatial features layer: points or areas |
bkg |
the spatial features layer |
DF.flow |
the input flow dataset as a dataframe |
origin |
the place of origin code |
destination |
the place of destination code |
DF.point |
a dataframe of points or places |
id |
dataframe of points or places file code |
x |
the X coordinate of the point or places |
y |
the Y coordinate of the point or places |
the corresponding joint table between the flow dataset and the spatial feature layer
1 2 3 4 5 6 7 8 | library(cartograflow)
library(sf)
data(flowdata)
map <- st_read(system.file("shape/MGP_TER.shp", package = "cartograflow"))
tabflow <- flowjointure(
geom = "area", bkg = map, DF.flow = flows, origin = "i", destination = "j",
id = "EPT_NUM", x = "X", y = "Y"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.