Skip to content

[feat]: plot_age_to_length #403

Open

Description

@Schiano-NOAA

The plot previously created in this PR in FIMS will be adapted and migrated into stockplotr.

Activity

  1. converted this from a draft issue on Oct 8, 2026
  2. changed the title [-][feat]: plot_age_at_length[/-] [+][feat]: plot_age_to_length[/+] on Oct 8, 2026
  3. MOshima-PIFSC commented on Nov 4, 2026

    @MOshima-PIFSC
    Collaborator

    @Schiano-NOAA I went ahead and added a first draft of the caption and alt text for the age_to_length plot.

    Also, during today's FIMS meeting it was mentioned that @iantaylor-NOAA had finished the age error feature for FIMS. I think I remember him saying that this type of plot could be used for that as well so maybe he can join us for our next coworking session to make the plot work for aging error?

  4. Schiano-NOAA commented on Nov 4, 2026

    @Schiano-NOAA
    CollaboratorAuthor

    @MOshima-PIFSC Fantastic! I will put a follow up co-working session on yours and @iantaylor-NOAA 's calendar. I will also take a look at the caption and alt text and work on adding in the rda portion to the function. We can go over it when we meet next.

    Thanks 😄

  5. MOshima-PIFSC commented on Nov 17, 2026

    @MOshima-PIFSC
    Collaborator

    @Schiano-NOAA and @iantaylor-NOAA I think I was able to get the dynamic alt text working for multiple facets here. Testing it with just the example data with morph 1 and 2 produces this alt text:

    ── The following key quantities were extracted and inserted into 'captions_alt_text.csv' and 'key_quantities.csv': 
    • length.units: cm
    • age.length.group: morph
    • age.length.age.min: 0
    • age.length.age.max: 20
    • age.length.length.min: 10
    • age.length.length.max: 94
    • mean.length.description: For morph 1, mean length increases from about 23.5 cm at age 0 to about 70.01 cm at age 20.  For morph 2, mean length increases from about 23.5 cm at age 0 to about 70.01 cm
    at age 20.
    
  6. linked a pull request that will close this issue[Feat]: age-to-length conversion plot #512on Nov 17, 2026
  7. iantaylor-NOAA commented on Nov 17, 2026

    @iantaylor-NOAA
    Contributor

    @MOshima-PIFSC, nice work!

    • mean.length.description: For morph 1, mean length increases from about 23.5 cm at age 0 to about 70.01 cm at age 20. For morph 2, mean length increases from about 23.5 cm at age 0 to about 70.01 cm at age 20.

    The only refinement I would suggest is that even though I suggested round() it would be better to use signif() (still with digits = 2), since we don't actually know what the units are. I don't think anybody needs the alt-text to be that precise.

    > signif(70.01, digits = 2)
    [1] 70
    
    > signif(0.0123, digits = 2)
    [1] 0.012
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions