transects: Coastal Transects

Description Usage Arguments Value Examples

View source: R/transects.R

Description

This function finds the correct angle for transects that run either along or away from a set of points along a coastline.

Usage

1
2
transects(site_list, alongshore = FALSE, spread = 2, coast = TRUE,
  reverse = FALSE)

Arguments

site_list

A dataframe with a 'lon' and 'lat' column that contains coordinates for sites along a coastline.

alongshore

A boolean TRUE/FALSE to determine if the transects should be shore-normal or alongshore. Default = FALSE.

spread

The number of pixels along the coast on either side of the site in question that should be used to determine the angle of the shore-normal transect. A larger spread value will provide smoother angles, which may be undesirable for convoluted coastlines. Defaut = 2.

coast

Should only the coastline be used to calculate the angle for transects? Or should islands be included? Calculating the angle of transects form or along the faces of islands is advised against. The coastline behind the island should almost always be used instead. Default = TRUE.

reverse

A boolean TRUE/FALSE that will reverse the angle of the shore-normal transects. Default = FALSE.

Value

A dataframe with the correct ordering of the input sites

Examples

1
SACTN_site_list_transects <- transects(SACTN_site_list[25:45,])

schrob040/coastR documentation built on Dec. 8, 2017, 5:06 p.m.