imperialCHEPI / healthgps-plots

A set of scripts for plotting and visualising data related to Health-GPS
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Add importing multiple data files and grid-plotting #3

Closed jzhu20 closed 8 months ago

jzhu20 commented 9 months ago

Add my commands on importing multiple data files in a directory (can be modified) Update plotting and add grid-plotting commands Update reshaping and calculating difference Re-structure the script

jzhu20 commented 9 months ago

Thanks @TinyMarsh. My response and comments are:

  1. At first, I received "Rscript command not found" which might be a common issue. Path of R needs to be added using, e.g. $Env:PATH += "C:\Program Files\R\R-4.3.2\bin"

  2. I changed the R script again and updated renv.lock file as well. I kept both ways of importing multiple files as Option 1 (command line) and Option 2 (all csv files in the directory) and added one line of combining dataframes in option 1, because we will need to combine all the simulation results (csv files) to take weighted mean and plot. From my perspective, option 2 is more convenient when importing a large number of csv files, like 50 or 100. Option 1 is more flexible if we need to import, e.g. 20 of the 50 simulation results. We can keep both maybe.

  3. Actually I've got error message when running R script, as described in #1.

jzhu20 commented 9 months ago

Sorry I tried to make changes in this PR but ended up creating a new PR #4 . Apologize for this.

TinyMarsh commented 9 months ago

@jzhu20 did you have any code changes in this PR that you wanted to keep? If not we can close this PR and continue with #4.