IniziaInizia gratis

EDA of relationship

Unfortunately, making 3D scatterplots to perform an EDA is beyond the scope of this course. So instead let's focus on making standard 2D scatterplots of the relationship between price and the number of bedrooms, keeping an eye out for outliers.

The log10 transformations have been made for you and are saved in house_prices.

Questo esercizio fa parte del corso

Modeling with Data in the Tidyverse

Visualizza il corso

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Create scatterplot with regression line
ggplot(house_prices, aes(___, y = ___)) +
  ___() +
  labs(x = "Number of bedrooms", y = "log10 price") +
  ___(method = "lm", se = FALSE)
Modifica ed esegui il codice