View source: R/ttt_mean_od_vectors.R
mean_od_vectors | R Documentation |
Compute the mean vectors of an OD matrix
mean_od_vectors(pts, OD)
pts |
|
OD |
an OD matrix with as many rows as |
An sf
data.frame similar to pts
with dx
and dy
columns that store the mean vectors.
# data(munich) # sf=mean_od_vectors(munich$coords,minich$OD) # ggplot(sf)+geom_segment(aes(x=x,y=y,xend=x+dx*100,yend=y+dy*100),arrow = arrow(angle=15,length = unit(0.3,"cm"),type = "closed"))+theme_void()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.