Skip to content

Commit

Permalink
add midwater vs bottom trawl age comps
Browse files Browse the repository at this point in the history
  • Loading branch information
iantaylor-NOAA committed Nov 27, 2024
1 parent 0f477e4 commit ac67be5
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 5 deletions.
31 changes: 29 additions & 2 deletions docs/data_summary_doc.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,11 @@ Note that California lengths are not yet available for 2023.

While running `PacFIN.Utilities::cleanPacFIN()`, it noted that 20 Washington ages in 1991 were double read, the second reader was not recorded, the first and second ages differed, and no final age was determined.

#### Comparing midwater vs bottom trawl lengths
```{r pacfin-midwater-vs-bottom-fig}
#### Comparing midwater vs bottom trawl lengths and ages

The length and age distribution associated with the midwater trawl (MDT) code in PacFIN is is very similar to bottom trawl catch (everything else in the TWL gear group). Note that the sample sizes for ages in 2022-2024 are lower than other years, especially midwater in 2022 which only has 14 ages.

```{r pacfin-midwater-vs-bottom-figs}
# create separate geargroup2 column which separates midwater from bottom trawl
# see note at
# https://github.com/pfmc-assessments/PacFIN.Utilities/issues/69#issuecomment-2499162809
Expand All @@ -246,6 +249,30 @@ bds_clean |>
breaks = c("MDT", "TWL"),
labels = c("Midwater trawl", "Bottom trawl")
)
# age comps from midwater vs bottom trawl
bds_clean |>
filter(geargroup == "TWL", !is.na(Age),SAMPLE_YEAR >= 2011) |>
ggplot(aes(
x = Age,
y = forcats::fct_rev(as.factor(SAMPLE_YEAR)),
color = as.factor(geargroup2)
)) +
ggridges::geom_density_ridges(
alpha = 0.2,
stat = "binline",
binwidth = 1
) +
labs(
x = "Age",
y = "Year",
) +
scale_color_discrete(
name = "Gear",
breaks = c("MDT", "TWL"),
labels = c("Midwater trawl", "Bottom trawl")
)
```


Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1814,11 +1814,15 @@ <h3 class="anchored" data-anchor-id="commercial">Commercial</h3>
</div>
<p>Note that California lengths are not yet available for 2023.</p>
<p>While running <code>PacFIN.Utilities::cleanPacFIN()</code>, it noted that 20 Washington ages in 1991 were double read, the second reader was not recorded, the first and second ages differed, and no final age was determined.</p>
<section id="comparing-midwater-vs-bottom-trawl-lengths" class="level4">
<h4 class="anchored" data-anchor-id="comparing-midwater-vs-bottom-trawl-lengths">Comparing midwater vs bottom trawl lengths</h4>
<section id="comparing-midwater-vs-bottom-trawl-lengths-and-ages" class="level4">
<h4 class="anchored" data-anchor-id="comparing-midwater-vs-bottom-trawl-lengths-and-ages">Comparing midwater vs bottom trawl lengths and ages</h4>
<p>The length and age distribution associated with the midwater trawl (MDT) code in PacFIN is is very similar to bottom trawl catch (everything else in the TWL gear group). Note that the sample sizes for ages in 2022-2024 are lower than other years, especially midwater in 2022 which only has 14 ages.</p>
<div class="cell">
<div class="cell-output-display">
<p><img src="data_summary_doc_files/figure-html/pacfin-midwater-vs-bottom-fig-1.png" class="img-fluid" width="672"></p>
<p><img src="data_summary_doc_files/figure-html/pacfin-midwater-vs-bottom-figs-1.png" class="img-fluid" width="672"></p>
</div>
<div class="cell-output-display">
<p><img src="data_summary_doc_files/figure-html/pacfin-midwater-vs-bottom-figs-2.png" class="img-fluid" width="672"></p>
</div>
</div>
</section>
Expand Down

0 comments on commit ac67be5

Please sign in to comment.