sizespectrum / mizer

Multi-species size-based ecological modelling in R
https://sizespectrum.org/mizer
38 stars 43 forks source link

Legends in plots show only included species #203

Closed gustavdelius closed 3 years ago

gustavdelius commented 3 years ago

This closes #197. In addition the tooltips in the plotly versions of the plots have been cleaned up.

At the same time I cleaned up the plotting code. Most plotting functions now have all their ggplot-specific code handled by the new plotDataFrame() function.

There has been a change in the return values when plotting functions are called with return_data = TRUE. Most importantly, the return value from plotBiomass is a single data frame rather than a list of two data frames. Before this pull request gets merged I therefore need the go-ahead from @baldrech , who implemented the return_data feature and is already using it in his code.

gustavdelius commented 3 years ago

@baldrech Hi Romain, let me know if you have any objections to this code being merged into master.