NEON-biodiversity/Ostats

Better multivariate plot legend

qdread opened this issue · 3 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