x <- rnorm(500, mean=5, sd=2)
y <- x + rnorm(500)
plot(x, y)My final project
Introduction
We can cite papers by attributing things to publications directly like Felsenstein (1985b) or making declarative statements supported by a publication (Felsenstein 1981), or more than one publication (Felsenstein 1981, 1985a). These citations are in bibtex format in an accompanying file, citations.bibtex. The formatted citations were copied and pasted from the cite button in google scholar for each reference.
It’s easy to include images.
We can reference Figure 1.
Methods
If you need to explain some code without running it, you can show it like this, denoting the language for syntax highlighting.
head myfile.txt | cut -f 3 | sort | uniq -cResults
Results subsection 1
I’m going to make a plot of some simulated data.
Results subsection 2
Let’s print this table.
df <- data.frame(x=x,y=y)
df Results subsection 3
We can also hide the code and just print the results.
Discussion
You can see from Figure 2 the data are correlated. You can see from Table 1 that rendering the whole table is superfluous. You should not be able to see the histogram code for Figure 3 in the rendered document.