divide plot.R into two files, ts and sp plot.
multiple changes:
*code clean up
*change order of code bits
*splitting of plotting in two files