@@ -17,13 +18,15 @@ This is an R Markdown document that you can easily export to HTML, PDF, and MS W
When you click on the button **Knit**, the document will be compiled in order to re-execute the R code and to include the results into the final document. As we have shown in the video, R code is inserted as follows:
```{r cars}
summary(cars)
x=vector
plot(x, type = "l", lty = 1)
lines(x, type = "l",col="blue", lty = 1)
```
It is also straightforward to include figures. For example:
```{r pressure, echo=FALSE}
plot(pressure)
hist(vector,col="blue")
```
Note the parameter `echo = FALSE` that indicates that the code will not appear in the final version of the document. We recommend not to use this parameter in the context of this MOOC, because we want your data analyses to be perfectly transparent and reproducible.