reflection {edgeCorr} | R Documentation |
This function creates an extra dataset of points that, when plotted are the mirror reflection of the specified edge of the original dataset.
reflection(pp, Length,Breadth, direction)
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. |
The xy coordinates for the additional dataset are returned.
Glenna Nightingale
data(x)
data(y)
datafile = data.frame(x[,1],y[,1])
reflection(datafile,1,1,4)