Skip to content

Commit 3cd3c51

Browse files
committed
fix desc() issue and duplicated LazyData line for #54
1 parent 207b008 commit 3cd3c51

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

DESCRIPTION

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ Description: Tools for projecting marine mammal populations into the future unde
3636
License: MIT + file LICENSE
3737
URL: https://github.com/mcsiple/mmrefpoints
3838
BugReports: https://github.com/mcsiple/mmrefpoints/issues
39-
LazyData: true
4039
Imports:
4140
config,
4241
shiny,

R/17_plot_proj.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ plot_proj <- function(high,
175175
sdf <- tidyr::pivot_longer(spag.df, cols = high:low,
176176
names_transform = list(name = as.factor,
177177
sim = as.factor)) %>%
178-
dplyr::arrange(dplyr::desc(name, sim))
178+
dplyr::arrange(dplyr::desc(name),dplyr::desc(sim))
179179

180180
dlab1 <- paste("N[0] == ", round(InitDepl, digits = 2), "*K")
181181

R/18_multiplot_proj.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ multiplot_proj <- function(high.d1, # d1 is lowest depl, high is highest bycatch
242242
sim = as.factor
243243
)
244244
) %>%
245-
dplyr::arrange(dplyr::desc(name, sim))
245+
dplyr::arrange(dplyr::desc(name), dplyr::desc(sim))
246246
sdf1$depl.level <- InitDepls[1]
247247

248248
sdf2 <- tidyr::pivot_longer(spag.df2,
@@ -252,7 +252,7 @@ multiplot_proj <- function(high.d1, # d1 is lowest depl, high is highest bycatch
252252
sim = as.factor
253253
)
254254
) %>%
255-
dplyr::arrange(dplyr::desc(name, sim))
255+
dplyr::arrange(dplyr::desc(name),dplyr::desc(sim))
256256
sdf2$depl.level <- InitDepls[2]
257257

258258
sdf3 <- tidyr::pivot_longer(spag.df3,
@@ -262,7 +262,7 @@ multiplot_proj <- function(high.d1, # d1 is lowest depl, high is highest bycatch
262262
sim = as.factor
263263
)
264264
) %>%
265-
dplyr::arrange(dplyr::desc(name, sim))
265+
dplyr::arrange(dplyr::desc(name),dplyr::desc(sim))
266266
sdf3$depl.level <- InitDepls[3]
267267

268268
megadf <- bind_rows(sdf1, sdf2, sdf3)

0 commit comments

Comments
 (0)