- The World Happiness Report is a survey of the state of global happiness. It currently ranks 155 countries by their happiness levels.
- The hypothesis being tested in whether a country’s GDP per capita can influence its happiness score.
2024-06-06
colnames(happiness_data)
## `geom_smooth()` using formula = 'y ~ x'
library(ggplot2)
ggplot(happiness_data, aes(x = Economy..GDP.per.Capita.,
y = Happiness.Score)) +
geom_point() +
geom_smooth(method = "lm", se = FALSE) +
labs(x = "GDP per Capita",
y = "Happiness Score",
title = "Relationship between GDP
per Capita and Happiness Score")
## `geom_smooth()` using formula = 'y ~ x'