AndrewLJackson / SIBER

ellipse and convex hull fitting package for stable isotope data
36 stars 14 forks source link

maxLikOverlap code not working for me #101

Closed dmb554 closed 11 months ago

dmb554 commented 11 months ago

Hi all,

I have created a Siber object with my data and had no problem generating 95% ellipses and convex hulls and calculating metrics. However, when I attempt to calculate the overlap, this is the error that I get:

ageclassoverlap<-maxLikOverlap("1.Juvenile", "1.Calf", "1.Adult", siberobj, p.interval=0.95, n=100) ageclassoverlap

Error in siber.object$sample.sizes : $ operator is invalid for atomic vectors

When I run is.atomic(siberobj) it is FALSE. siberobj is showing as a list file.

I am not sure where to go from here. Thank you in advance!

dmb554 commented 11 months ago

This was solved! I was trying to look at three ellipses at the same time, which you cannot do. When edited to only two ellipses, it works!