Changed res1 etc. to resA etc.

Weird bug if you used numbers for the second variable caused the
percentile plot code to fail if you selected threshold figure first.
Traced it back to the input list which creates res1 and res2
automatically as booleans. Changing numbers to letters makes sure
variables are unique.