Description Usage Arguments Details Value Author(s) Examples
The function intersects objects SpatialPoints
and SpatialLinesDataFrame
.
Identyfies the closer stretch(es) to a station. The SpatialPoints
must
be length 1.
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
1 2 3 4 5 6 7 8 9 10 11 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.