NEON-biodiversity / Ostats

O-statistics (community pairwise niche overlap statistics)

Home Page:https://neon-biodiversity.github.io/Ostats/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better multivariate plot legend

qdread opened this issue · comments

The multivariate plot legend currently is kind of ugly: it's the species names written in different colors. It would be better to have a line or point in the color for each species, next to the name of each species in black.

Relevant bit of code: https://github.com/NEON-biodiversity/Ostats/blob/master/R/Ostats_multivariate_plot.R#L108-L117

@isafluck Would you mind giving this a try? I will help out as needed.

Actually it occurs to me that it would be nice to have a legend with names associated with species colors for the regular Ostats_plot() too, not just the multivariate plot. So we should do that as well.

Fixed the multivariate legend in b6b1e25 but not yet in Ostats_plot()

Fixed this in Ostats_plot() too in a943d4f