Skip to content

Commit a8148f6

Browse files
committed
fixed figure placement for regression2
1 parent 1661d0e commit a8148f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

regression2.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ to draw the straight line of best fit through our existing data points.
9090
The small subset of data as well as the line of best fit are shown
9191
in Figure \@ref(fig:08-lin-reg1).
9292

93-
```{r 08-lin-reg1, message = FALSE, warning = FALSE, echo = FALSE, fig.height = 3.5, fig.width = 4.5, fig.cap = "Scatter plot of sale price versus size with line of best fit for subset of the Sacramento housing data."}
93+
```{r 08-lin-reg1, message = FALSE, warning = FALSE, echo = FALSE, fig.height = 3.5, fig.width = 4.5, fig.pos = "H", out.extra="", fig.cap = "Scatter plot of sale price versus size with line of best fit for subset of the Sacramento housing data."}
9494
library(tidyverse)
9595
library(tidymodels)
9696
library(scales)
@@ -825,7 +825,7 @@ df <- df |>
825825
df
826826
```
827827

828-
```{r 08-predictor-design, message = FALSE, warning = FALSE, echo = FALSE, fig.height = 3.5, fig.width = 4.5, fig.cap = "Example of a data set with a nonlinear relationship between the predictor and the response."}
828+
```{r 08-predictor-design, message = FALSE, warning = FALSE, echo = FALSE, fig.height = 3.5, fig.width = 4.5, fig.pos = "H", out.extra="", fig.cap = "Example of a data set with a nonlinear relationship between the predictor and the response."}
829829
curve_plt <- ggplot(df, aes(x = x, y = y)) +
830830
geom_point() +
831831
xlab("x") +

0 commit comments

Comments
 (0)