Python, Data Analysis, Data Science, R, Machine Learning.
read.csv("children_parent_height.csv") str(df) # scatter plot with linear trend between father and children height ggplot(aes(x = father_height, y = children_height), data = df) + geom_point() + geom_smooth(method = 'lm', formula = y ~ x, se = FALSE) Figure 1. Linearity check in R Linearity check