electionscience / vse-sim

Methods for running simulations to calculate Voter Satisfaction Efficiency (VSE) of various voting systems in various conditions.
https://electionscience.github.io/vse-sim
57 stars 17 forks source link

Add target4.csv; Document vseCheck.R #20

Open nealmcb opened 7 years ago

nealmcb commented 7 years ago

It looks like vseCheck.R is used to produce the visualizations used in the documentation, like .

This appears to be a way to install the R packages (but perhaps not the best way?):

$ R
> install.packages("scatterD3") 
> install.packages("data.table")

$ sudo mv /tmp/Rtmp-X49N6W-or-whatever/downloaded_packages/* /usr/local/lib/R/site-library

Then, trying to reproduce the figures yields this:

$ R -f vseCheck.R
Error in fread("target4.csv") : 
  File 'target4.csv' does not exist. Include one or more spaces to consider the input a system command.

So I'm guessing we need that file also, perhaps among other things.

Any other tips on reproducing (and customizing!) the output would be great.

Thanks!