Another R script update

Includes small plot function.
Support for parameter lists has been added, with slightly awkward
formatting.