In this exercise you will learn to visualize the pairwise relationships between a set of quantitative variables. To this end, you will make your own note of 8.1 Correlation plots from Data Visualization with R.
By default, it creates a ggplot2 graph were darker red indicates stronger positive correlations. living area and bathrooms
No because we need to know causation.
A confounding variable is a variable, other than the independent variable that you’re interested in, that may affect the dependent variable. The cofounding variable is age.
darker blue indicates stronger negative correlations and white indicates no correlation. None with home price.
The lot size has little correlation with home price
they are not related in a linear relationship.
Hint: The CPS85 data set is from the mosaicData package. Explain wage instead of home price.
Hint: Use message, echo and results in the chunk options. Refer to the RMarkdown Reference Guide.