NEON-biodiversity / Ostats

O-statistics (community pairwise niche overlap statistics)
https://neon-biodiversity.github.io/Ostats/
Other
7 stars 2 forks source link

Ostats_multivariate_plot fails with only two traits #56

Open qdread opened 2 hours ago

qdread commented 2 hours ago

The layout does not work with only two traits because the current code creates an upper triangular matrix of plots and puts the legend in one of the empty panels. But with two traits the matrix of plots is only a 1x1 matrix. So there is no empty panel to put the legend into. This results in an error. I thought it would be a quick fix but it will require a little bit, or maybe a lot, of rewriting of Ostats_multivariate_plot. I will fix it ASAP. Thanks to Paco Fontaine for pointing this out to me via email.

qdread commented 2 hours ago

5a9e8c4 basically fixes this but I will leave this open for now because I didn't fully test it. Will try to do that next week.