Learn R Programming

geo (version 1.4-3)

orthproj: Performs an orthogonal projection to a curve.

Description

Finds curve coordinates of points, given points and a curve it returns the length of the points orhogonal projection and the distance traveled to the projection from a given origin on the curve.

Usage

orthproj(pts, curve)

Arguments

pts
A list containing the points as \$lat and \$lon, you may also use geolocator.
curve
The curve to be used for projection.

Value

Returns a dataframe with vectors pardist (length of orthogonal projection) and perdist (how far traveled alongst the curve).

Side Effects

None.

See Also

geocurve, geolocator.

Examples

Run this code
## Not run:        geoplot(my.curve)     # Plot curve and initialize plot.
#        geocurve(geolocator(),my.curve)         # Mark points.
# ## End(Not run)

Run the code above in your browser using DataLab