adding Figure6 for plotting slope and R2