# Generate some simulated data with 100 stream segments
x<-simulateNetwork(n.segments = 100, lambda = 1)
lmSim<-smnet(formula=response~1 +
network(adjacency = x$adjacency, weight = x$wgts,
locs = x$response.locs),
data.object = x$obsdata,
method = "AICC")
plot(lmSim, type = "nodes", coords = x$obsdata[,2:3])
Run the code above in your browser using DataLab