Module #8: Correlation Analysis and ggplot2
Correlation is a mutual relationship or connection between two or more things. A good way to show the correlation of data is by using a scatter plot.
For this weeks assignment we used ggplot2 which is a data visualization package for the statistical programming language R.
I used the mtcars data set to create the scatter plot above using ggplot2. It shows the correlation between the miles per gallon and horse power of the cars in the data set.
The data shows that cars with a higher mpg tend to have a lower horse power while cars with a high horse power have a lower mpg.
I added a white regression line to show the flow of the data.