Calculation of the Abscissa, Ordinate and Distance From the Origin For an Arbitrary Point on the Preston Curve
Calculation of the Abscissa, Ordinate and Distance From the Origin For an Arbitrary Point on the Preston Curve
PE is used to calculate the abscissa, ordinate and distance from the origin for an arbitrary point on the Preston curve that was generated by the original Preston equation or one of its simplified versions at a given angle.
UTF-8
PE(P, zeta, simpver =NULL)
Arguments
P: the parameters of the original Preston equation or one of its simplified versions.
zeta: the angle(s) used in the Preston equation.
simpver: an optional argument to use the simplified version of the original Preston equation.
Details
When simpver = NULL, the original Preston equation is selected:
where x and y represent the abscissa and ordinate of an arbitrary point on the Preston curve corresponding to an angle ζ; r represents the distance of the point from the origin; a, b, c1, c2, and c3 are parameters to be estimated.
When simpver = 1, the simplified version 1 is selected:
y=asinζ,x=bcosζ(1+c1sinζ+c2sin2ζ),r=x2+y2,
where x and y represent the abscissa and ordinate of an arbitrary point on the Preston curve corresponding to an angle ζ; r represents the distance of the point from the origin; a, b, c1, and c2 are parameters to be estimated.
When simpver = 2, the simplified version 2 is selected:
y=asinζ,x=bcosζ(1+c1sinζ),r=x2+y2,
where x and y represent the abscissa and ordinate of an arbitrary point on the Preston curve corresponding to an angle ζ; r represents the distance of the point from the origin; a, b, and c1
are parameters to be estimated.
When simpver = 3, the simplified version 3 is selected:
y=asinζ,x=bcosζ(1+c2sin2ζ),r=x2+y2,
where x and y represent the abscissa and ordinate of an arbitrary point on the Preston curve corresponding to an angle ζ; r represents the distance of the point from the origin; a, b, and c2 are parameters to be estimated.
Returns
x: the abscissa(s) of the Preston curve corresponding to the given angle(s).
y: the ordinate(s) of the Preston curve corresponding to the given angle(s).
r: the distance(s) of the Preston curve corresponding to the given angle(s) from the origin.
Note
ζ is NOT the polar angle corresponding to r, i.e.,
y=rsinζ,x=rcosζ.
Let φ be the polar angle corresponding to r. We have:
Biggins, J.D., Thompson, J.E., Birkhead, T.R. (2018) Accurately quantifying the shape of birds' eggs. Ecology and Evolution 8, 9728−9738. tools:::Rd_expr_doi("10.1002/ece3.4412")
Preston, F.W. (1953) The shapes of birds' eggs. The Auk 70, 160−182.
Shi, P., Wang, L., Quinn, B.K., Gielis, J. (2023) A new program to estimate the parameters of Preston's equation, a general formula for describing the egg shape of birds. Symmetry