Graphs in R / Basic Plot vs ggplot2

Basic Plot with lm()

 

ggplot2 with geom_smooth() method lm

In ggplot the lm() is being composed within the geom_smooth() element, and choosing “lm” (linear model).

 

Graphs in R / Basic Plot vs ggplot2
Tagged on: