View source: R/GIS_RiverProcess.R
sp.RiverOrder | R Documentation |
sp.RiverOrder
calculate river order
sp.RiverOrder
sp.RiverOrder(sp, coord = extractCoords(sp))
sp |
SpatialLines* |
coord |
coordinates of |
Stream Order of SpatialLines*
library(rgdal)
data(sac)
riv=sac$riv
ord = sp.RiverOrder(riv)
print(ord)
idx = sort(unique(ord))
raster::plot(riv, col=ord)
legend('topleft', legend=idx, col=idx, lwd=1, lty=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.