covid-sim
/home/abuild/rpmbuild/BUILD/covid-sim-0.14.0/Rscripts/README.md
1 # Running CovidSim in R
2 
3 ## Purpose
4 
5 These are scripts in R that take the data generated by the spatial simulation
6 and summarize it graphically.
7 
8 ## Prerequisites
9 
10 [Download and install R.](https://cran.r-project.org/). These scripts have been
11 tested for R 3.4.4, but other versions should work as well.
12 
13 You will need the R library sp, but if this is missing, the scripts will prompt
14 you to install it themselves.
15 
16 ## Running the scripts
17 
18 If you generated data with `run_UK_100th.sh`, you can type
19 
20 ```shell
21 Rscript Rscripts/CompareScenarios.R
22 ```
23 
24 or
25 
26 ```shell
27 Rscript Rscripts/PlotsSpatial.R
28 ```
29 
30 More generally, the syntax is:
31 
32 ```shell
33 Rscript [path-to-one-of-the-scripts.R] [folder-where-the-data-is]
34 ```
35 
36 If the second argument is omitted, it will try to pull the data from the
37 current directory.