-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjustments to package for better practice
- Loading branch information
1 parent
0048b37
commit 4e4f290
Showing
6 changed files
with
29 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
exportPattern("^[[:alpha:]]+") | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(add_theme) | ||
export(plot_recruitment) | ||
export(plot_spawning_biomass) | ||
export(table_indices) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
plot_land <- function(dat){ | ||
output <- dat |> filter(label == "landings") | ||
plot_land <- function(dat, | ||
model){ | ||
output <- dat |> dplyr::filter(label == "landings") | ||
|
||
narea <- length(unique(output$area)) | ||
nseas <- length(unique(output$season)) | ||
|
||
if (narea > 1 | nseas > 1) { | ||
|
||
} else { | ||
plt <- ggplot(data = output) + | ||
geom_line(aes(x = time, y = label))+ | ||
facet_wrap(~fleet) | ||
plt <- ggplot2::ggplot(data = output) + | ||
ggplot2::geom_line(ggplot2::aes(x = time, y = label))+ | ||
ggplot2::facet_wrap(~fleet) | ||
} | ||
add_theme(plt) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters