| RiverStation | R Documentation |
SpatialPoints and SpatialLinesDataFrame
The function intersects objects SpatialPoints and SpatialLinesDataFrame.
Identyfies the closer stretch(es) to a station. The SpatialPoints must
be length 1.
RiverStation(x, y, window = 100)
x |
An object of class |
y |
An object of class |
window |
A numeric value that represents the size of the square (window) around the |
window value magnifies the object x in order to certainly secure the intersection
with the object y. The greater value the more intersection area is defined.
An object SpatialLinesDataFrame that is a subsect of th object x that represents
the current intersection withe object x.
J.A. Torres
library(Watersheds) data(WatershedsData) station1 = WatershedsData$station river1 = WatershedsData$river tributary = RiverStation(station1, river1) plot(tributary, col="blue") plot(station1,pch=21,bg="red",cex=.8,add=TRUE) plot.PolyLineAttribute(x=tributary, y="OBJECTID", dist=100, cex=.8) title(main="Point station and tributary rivers")