June 2016
Beginner to intermediate
1783 pages
71h 22m
English
To visualize a relation between two numeric variables, we usually create a scatter plot. We also add a fitted line or smooth curve to the scatter plot, which represents the majority of the data points. In this recipe, we will see how we can produce a scatter plot and then add a layer of fitted line along with a linear smooth and curved line. The curved line could be the lowess or local regression, but here, is loess the default.
Once again, we recall ggplotdata for this plot. In this case, we will use the two numeric variables, which are disA and disD.
Perform the following steps:
ggplot function along with the ...Read now
Unlock full access