Some predictor variables and response variables may have a non-linear relationship, and their relationship can be modeled as an nth order polynomial. In this recipe, we will introduce how to deal with polynomial regression using the lm and poly functions.