Sample a raster along a straight line between 2 points
rasterprofile(r, xy1, xy2, reso, plot = FALSE)A DEM raster
A matrix with X and Y coordinates for Point 1
A matrix with X and Y coordinates for Points 2
The minimal resolution of the DEM raster. It is 
calculated in viewshed and passed along.
Plot the process? Default is FALSE
A boolean vector, indicating if Point 1 (xy1) is visible from all elements of Points 2 (xy2)
Other Viewshed Analysis: 
cansee(),
interpol_view(),
plot_viewshed(),
viewTo(),
viewshed()