UofTChem-Teaching / R4EnvChem

Textbook of R recipes and workflows for environmental chemists.
https://uoftchem-teaching.github.io/R4EnvChem/
1 stars 2 forks source link

Suggestion: Adding instruction for how to add a line of best fit to data #24

Closed stephschneider closed 2 years ago

stephschneider commented 2 years ago

In lab 3, they need to plot their calibration curve with their fit line, but there is nothing in the manual about how to do it. It could be just a simple section showing geom_smooth() or stat_smooth and how it relates to lm(). Or, it could be geom_line using their values of intercept and slope?

DavidRossHall commented 2 years ago

That's in the works. I already had a draft written up in the proof-of-concept book. It's pulled out for now as we re-wrote it. I'm meeting with Jess next week to settle on a best-practice.

The code isn't the issue (it's done), it's what do to in the context of CHM410 etc.

DavidRossHall commented 2 years ago

Added the old QQQ linear regression chapter from the proof-of-concept book. Basically showcasing a bit of how the workflow would work.

Definitly needs to be chopped up etc.