Convert lines to transects (strips)

Description Usage Arguments Details Value Author(s)


Convert lines (center) with transect widths to strips and compute rotation angle from vertical. With the intersect function in gpclib, it also now clips the portions of the transects that are outside the study area.


lines_to_strips(lines, study.area, width = NULL)



dataframe with fields named label,x0,x1,y0,y1 and optionally width


owin class giving study area window


optional; if all lines have the same width it can be specified here


The function assumes that the intersection of the strip and the study area only results in a single intersection polygon. That means the entire strip cannot pass outside the study area and then come back into the study area as in an aerial transect that passes over water to over land and then back over water. In this case, the line should end when it passes out of the sampled area and restarted when back in the sampled area.



a psp class of lines with label and angles for rotation added


a list of dataframes with polygon coordinates


Jeff Laake

DSpat documentation built on May 20, 2017, 12:35 a.m.
Search within the DSpat package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.