<img src="project2_files/figure-html/unnamed-chunk-2-1.png" width="672" />
Pearson’s product-moment correlation
data: CerealCaloriesandCereal
Sugar
t = 3.5069, df = 34, p-value = 0.001296
alternative hypothesis: true correlation is not equal to 0
95 percent confidence interval:
0.2249563 0.7217280
sample estimates:
cor
0.5154008
The value of r is 0.3471 which is a weak and positive correlation.