Skip to content

Commit

Permalink
plotGrowthCurves() with species_panels = TRUE now plots the panel…
Browse files Browse the repository at this point in the history
…s in the correct order. Closes #201
  • Loading branch information
gustavdelius committed Sep 4, 2021
1 parent 783d784 commit 61e58a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@
`plotGrowthCurves()` are now correct, and no longer extend above the
asymptotic size.
* `plotGrowthCurves()` with `species_panel = TRUE` now respects the `species`
argument to only show growth curves for selected species, and it works with
a MizerParams object as well as a MizerSim object.
argument to only show growth curves for selected species, it works with
a MizerParams object as well as a MizerSim object, and it shows the panels
in the correct order. #201
* Reinstated the example .csv files that were missing from the package because
the vignettes are no longer included.

Expand Down
4 changes: 2 additions & 2 deletions R/plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -1156,12 +1156,12 @@ plotGrowthCurves <- function(object, species = NULL,
scale_x_continuous(name = "Age [years]") +
scale_y_continuous(name = "Size [g]") +
geom_hline(aes(yintercept = w_mat),
data = tibble(Species = params@species_params$species[sp_sel],
data = tibble(Species = factor(legend_levels),
w_mat = params@species_params$w_mat[sp_sel]),
linetype = "dashed",
colour = "grey") +
geom_hline(aes(yintercept = w_inf),
data = tibble(Species = params@species_params$species[sp_sel],
data = tibble(Species = factor(legend_levels),
w_inf = params@species_params$w_inf[sp_sel]),
linetype = "solid",
colour = "grey") +
Expand Down
2 changes: 1 addition & 1 deletion docs/dev/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 61e58a4

Please sign in to comment.