added legend to regression plots