关系的 EDA
遗憾的是,在本课程中不会涉及用 3D 散点图做 EDA。相应地,我们来关注用标准的 2D 散点图展示价格与卧室数之间的关系,并留意是否存在离群点。
log10 变换已经为您准备好,并保存在 house_prices 中。
本练习是课程的一部分
Tidyverse 的数据建模
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Create scatterplot with regression line
ggplot(house_prices, aes(___, y = ___)) +
___() +
labs(x = "Number of bedrooms", y = "log10 price") +
___(method = "lm", se = FALSE)