Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code for FSAR mandatory figure? #248

Closed
clumb opened this issue Feb 12, 2024 · 4 comments
Closed

Code for FSAR mandatory figure? #248

clumb opened this issue Feb 12, 2024 · 4 comments

Comments

@clumb
Copy link
Collaborator

clumb commented Feb 12, 2024

Hi,

Thank you so much for all of the work on csasdown! It is amazing to have rmarkdown templates for reproducible CSAS reports.

I'm not sure if this is the right place to post this question, as it's not an issue or a bug.

I work for DFO in Winnipeg, in the Arctic and Aquatic Research Division. We're having a stock assessment for Great Slave Lake (Lake Whitefish, Lake Trout and Inconnu), so we're going to draft fsars for the meeting.

I'm wondering if R code might be available for the mandatory panel of plots for FSAR Figure 1 (image below)? Obviously, no worries if it's not, I just thought I'd ask. I noticed from an issue posted in November that work on the fsar template is underway.

I'm fairly new to using csasdown. A couple weeks ago, I cloned csasdown (version 0.1.3) and the fsar branch to save locally on my machine. I found an image of the mandatory figure (in folders fsar -> knitr-figs-docx -> base1-1.png). I couldn't find the code that generated the figure. My apologies if the code is there and I missed it.

Thank you for your help, and for csasdown!

Chelsey

image

@seananderson
Copy link
Member

The fsar template is still in development. @ricardd has the most applied experience trying to use it. I'm also not sure where that code went. See the other thread. We're thinking about a good central place to put that code still. It's in the Git history for sure, but that's not very convenient.

@clumb
Copy link
Collaborator Author

clumb commented Feb 12, 2024

Hi Sean,

Thanks very much for your quick reply and for reminding me about the specs from Julie for the plots in the other issues thread. That's a big help!

Chelsey

@ricardd
Copy link
Contributor

ricardd commented Feb 14, 2024

@clumb on the fsar branch, see the function definition that creates a simulated dataset here:

R/fake-data.R

and the function that creates a 4-panel figure using the simulated dataset:

R/plot-timeseries.R

these two functions are called when one renders the example FSAR

https://github.com/pbs-assess/csasdown/blob/fsar/inst/rmarkdown/templates/fsar/skeleton/01_fsar.Rmd#L99-L104

@clumb
Copy link
Collaborator Author

clumb commented Feb 15, 2024

Hi Daniel,

Thank you so much for your reply and for the links! I copied the .R files and saved them in my local RProject folder. I was able to get the figure generated and render the fsar (yay!).

I'll have to figure out why I didn't have copies of the .R files. From the links you provided, it seems there are folders and files that aren't in my local repo, even though I cloned the repo from github. For now at least I have a working fsar template.

Thank you again for all of your help!

Chelsey

@clumb clumb closed this as completed Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants