reflection: Reflection edge correction

Description Usage Arguments Value Author(s) Examples

View source: R/ReflectionEdgeCorrection.R

Description

This function creates an extra dataset of points that, when plotted are the mirror reflection of the specified edge of the original dataset.

Usage

1
reflection(pp, Length,Breadth, direction)

Arguments

pp

Dataframe with two columns labelled x and y respectively.

Length

Length of the study plot.

Breadth

Breadth of the study plot.

direction

The direction can be specified as either 1,2,3 or 4. 1,2,3,4 denote the right, left, top and bottom borders respectively.

Value

The xy coordinates for the additional dataset are returned.

Author(s)

Glenna Nightingale

Examples

1
2
3
4
data(x)
data(y)
datafile = data.frame(x[,1],y[,1])
reflection(datafile,1,1,4)

edgeCorr documentation built on May 2, 2019, 2:31 p.m.