關係的 EDA
可惜的是,本課程不會介紹以 3D 散佈圖進行 EDA。因此,我們改以標準的 2D 散佈圖來檢視價格與臥室數之間的關係,同時留意是否有離群值。
house_prices 中已為你套用了 log10 轉換。
本練習屬於課程
在 Tidyverse 中進行資料建模
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Create scatterplot with regression line
ggplot(house_prices, aes(___, y = ___)) +
___() +
labs(x = "Number of bedrooms", y = "log10 price") +
___(method = "lm", se = FALSE)