spatialize.graph: spatialize.graph

Description Usage Arguments

View source: R/graph-and-ergm-fcns.R

Description

Spatializes a graph based on the node names. Names should align with geoids for either block groups or tracts (default).

Usage

1
2
3
4
5
6
7
8
spatialize.graph(
  gh,
  frame.sf = NULL,
  tracts.or.groups = c("ct", "bg"),
  directed = F,
  year = 2019,
  ...
)

Arguments

gh

a graph, as setup by sfg2gh

frame.sf

an sf object to crop to and use CRS from. Nodes outside the bbox of this area will be trimmed. Defaults to Lambert conformal conic projection if left null. (Why do I have all this complexity instead of just using coord_sf when mappi ng? Think I need to revise.. I think b/c i felt it allowed for more controlled trimming but..)

tracts.or.groups

Aggregate to census tract (ct) or leave at block group (bg)

directed

whether to leave directed or make undirected (which aggregates trips to/from the same tracts, rather than duplicating the O-D pair for each direction.)


kmcd39/divflow documentation built on Dec. 21, 2021, 7:38 a.m.