AndrewLJackson / SIBER

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

Error Ellipse Overlap #82

Closed IlseBarraza closed 1 year ago

IlseBarraza commented 2 years ago

Hi, I'm using the ellipse overlap for my thesis and I got this error:

Error in siber.object$sample.sizes[c.1, e.1] :subscript out of bounds

I'm doing everything exactly as the script marks it but I can't find what the error is, can someone help me?

Thanks in advance image

AylenM commented 2 years ago

¡Hi! I´m new in SIBER but I had the same problem when I used for the siberObject "group" and "community" codes as characters and not as integers.

AndrewLJackson commented 2 years ago

hi, what are c.1 and e.1?

AndrewLJackson commented 2 years ago

check the size of siber.object$sample.sizes using dim(siber.object$sample.sizes) and then check the values of c.1 and e.1. One can assume that they are taking values larger than then the size of the object sample.sizes and then you need to work out why, and if you are correctly looking up the values in the sample.sizes object.