add analysis_r to display figures