R/C code for implementing CCM and SSR on multiplot data