added rate plot to analyse script