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

Make figures/ directory with individual .Rmd scripts #16

Open
trvrb opened this issue Nov 5, 2023 · 0 comments
Open

Make figures/ directory with individual .Rmd scripts #16

trvrb opened this issue Nov 5, 2023 · 0 comments
Assignees

Comments

@trvrb
Copy link
Member

trvrb commented Nov 5, 2023

I’m using Rstudio rmd to generate the figures and have them organized with an outline where u can click to whichever figure to see how it is generated. The file is script_result_vis.rmd

It's fine to use R Studio instead of Jupyter to make your figures, but I'd still recommend making this clearer from a reproducible research standpoint. I'd suggest:

  1. Make a new top-level directory called figures/ in the repo
  2. Split out your current 3800 line (!) file script_result_vis.rmd into five files titled figure_1.Rmd, figure_2.Rmd, etc... that each produce just one figure.
  3. The PNG output from each of these files should be exactly what gets versioned in manuscript/figures/.
  4. Add a README.md under top-level figures/ directory that describes how to install necessary R packages (maybe with something like install.packages(c("dplyr", "ggplot2", "tidyverse")), but I don't know R very well at all) and how to load and run a file in R Studio.
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

2 participants