Skip to content

Commit d1d1ee5

Browse files
committed
Plot all data as per the text
1 parent 8a5aa3e commit d1d1ee5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/regression1.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ sacr_preds <- sacr_fit |>
666666
predict(sqft_prediction_grid) |>
667667
bind_cols(sqft_prediction_grid)
668668
669-
plot_final <- ggplot(sacramento_train, aes(x = sqft, y = price)) +
669+
plot_final <- ggplot(sacramento, aes(x = sqft, y = price)) +
670670
geom_point(alpha = 0.4) +
671671
geom_line(data = sacr_preds,
672672
mapping = aes(x = sqft, y = .pred),

source/regression2.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ sacr_preds <- lm_fit |>
312312
predict(sqft_prediction_grid) |>
313313
bind_cols(sqft_prediction_grid)
314314
315-
lm_plot_final <- ggplot(sacramento_train, aes(x = sqft, y = price)) +
315+
lm_plot_final <- ggplot(sacramento, aes(x = sqft, y = price)) +
316316
geom_point(alpha = 0.4) +
317317
geom_line(data = sacr_preds,
318318
mapping = aes(x = sqft, y = .pred),

0 commit comments

Comments
 (0)