The output plots with my various choices of parameters are in the images folder.  To re-run all calculations:

1. Download the Senate formal preference files, save to the pref_files folder, rename as prefs_nsw.csv, prefs_vic.csv, etc.

2. Run make_atl_distances.pl, setting the state either at the top of the code or as a command line argument, e.g.

>perl make_atl_distances.pl nsw

That should output the state's distance matrices to the graph_distances folder, and the ATL votes CSV file to the current folder.  It will not use up much RAM but it'll take a few minutes to get through the larger states.

3. Run pca_atl.R for PCA, or force_directed.R for force-directed graphs, or force_directed_seq.R for force-directed graphs where the axes are optimised sequentially (I generally don't like the output from this).  If you only have 4 GB of RAM, then the NSW PCA calculation will likely run out of memory.  Victoria might work if you close most other applications.
