View source: R/step_calculation.R
make_step_geom | R Documentation |
This calculates step geometries as individual line segments based on the active_group
make_step_geom(group, time_data, geometry)
group |
a c_grouping object |
time_data |
time vector |
geometry |
the geometery data from either sf or sf_track. Must be an sf geometry class |
#'
library("sf")
geom <- st_as_sf(data.frame(
x = c(1, 2, 2, 5),
y = c(0, 1, 5, 7)
), coords = c("x", "y"))
burst <- list(id = rep(1, 4))
time <- 1:4
cg <- make_c_grouping(burst)
make_step_geom(
group = cg,
geometry = geom$geometry,
time_data = time
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.