糖能提升幸福感嗎?
world_happiness 新增了一個欄位 grams_sugar_per_day,記錄各國每人每日平均攝取的糖量。在這個練習中,你要檢視一個國家的平均糖攝取量對其幸福分數的影響。
已載入 dplyr 與 ggplot2 函式庫,且可以使用 world_happiness。
本練習屬於課程
R 統計學入門
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Scatterplot of grams_sugar_per_day and happiness_score
___
# Correlation between grams_sugar_per_day and happiness_score
___