Commit d73a44dd authored by kfield's avatar kfield

Update report.Rmd

parent ab2c75f5
Below is a scatter plot with the regression line.
```{r plot, fig.height=5}
par(mar = c(4, 4, 1, 1))
plot(regFormula(), data = mtcars, pch = 19, col = 'black', alpha=0.8)
abline(fit, col = 'gray', lwd = 2)
```
Here is my regression model:
```{r model, collapse=TRUE}
......@@ -16,3 +8,11 @@ summary(fit)
```
The fitting result is $mpg = `r b[1]` + `r b[2]``r input$x`$.
Below is a scatter plot with the regression line.
```{r plot, fig.height=5}
par(mar = c(4, 4, 1, 1))
plot(regFormula(), data = mtcars, pch = 19, col = 'black', alpha=0.8)
abline(fit, col = 'gray', lwd = 2)
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment