merged simulation plots into analysis.R