[R-sig-eco] [EXTERNAL] Producing images of Plant leaves in R
Philippi, Tom
tom_ph|||pp| @end|ng |rom np@@gov
Tue Jun 11 23:14:20 CEST 2019
Eric--
If you don't care about "leaf-like" shape, you have 6 X,Y points defined
plus a pair of points at the maximum width at some undefined distance from
the apex. Assuming bilateral symmetry, and assuming that the maximum width
is at 50% from apex to base, you have 5 points {0,0, b10width/2,length*.1,
maxW/2,length/2, b90width/2,length*.9, and 0,length}, so you could
trivially fit a 4th order polynomial to those points, plot it and the
mirror image, and have blobs with those specific measurements.
I suspect that those blobs will not really look like your leaves. Looking
at https://en.wikipedia.org/wiki/Glossary_of_leaf_morphology , maybe
acute, obtuse, perforate, & oblanceolate might have max width at 50% of
length. You _might_ be able to guess a position along the base-apex axis
for the maximum width (e.g., 35%) and get more reasonable shapes. But I
suspect you need more measurements to characterize most leaf shapes.
Alternatively, if you only have one shape of leaves, you might be able to
take that shape, then scale & warp it to your truss of points.
Tom
On Tue, Jun 11, 2019 at 1:09 PM Eric Doucette <eric.t.doucette using gmail.com>
wrote:
> Hello, does anyone know of a package(s) or methods to reproduce the shapes
> of plant leaves in R? I have a large dataset (over 7500) of individual
> plant leaves for which I have the following measurements: leaf length, leaf
> width, leaf width at 1/10 of the overall length below the apex, and leaf
> width at 1/10 of the overall length above the base. I am looking for a way
> to code to get a visual representation of these lengths. They do not have
> to actually be the same as the "real" measurements as long as the ratio of
> measurements is correct. Thanks for any advice you can provide,
> Eric
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-ecology mailing list
> R-sig-ecology using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>
[[alternative HTML version deleted]]
More information about the R-sig-ecology
mailing list