\small
^1^ Estación Biológica de Doñana (CSIC)
^2^ Universidad de Sevilla
^3^ Second Author affiliation
*
Corresponding author: example@example.com
\normalsize
\vspace{1cm} \hrule
Write your abstract here.
\vspace{3mm} \hrule \vspace{5mm}
Keywords: Rmarkdown, reproducible science
\bleft \newpage
library("knitr") ### Chunk options: see http://yihui.name/knitr/options/ ### ## Text results opts_chunk$set(echo = FALSE, warning = TRUE, message = TRUE) ## Code decoration opts_chunk$set(tidy = TRUE, comment = NA, highlight = TRUE) ## Cache # opts_chunk$set(cache = 2, cache.path = "output/cache/") ## Plots opts_chunk$set(fig.path = "output/figures/")
library(knitcitations) cleanbib() cite_options(citation_format = "pandoc")
Write your introduction here.
You can cite bibliography like this [@Yan2011; @Sutherland2011] if you provide a BibTeX
file with references. You can also search for references on PubMed, DataCite or Crossref, cite by DOI, or read them from your Zotero library or a shared Zotero group (see https://rstudio.github.io/visual-markdown-editing/#/citations and https://rmarkdown.rstudio.com/authoring_bibliographies_and_citations.html for more information).
You can also specify the desired output format for your bibliography (see csl
field in the YAML above). Many different bibliography styles (CSL files) can be obtained at https://zotero.org/styles or https://github.com/citation-style-language/styles.
We worked in a beautiful place with lots of trees, like Quercus suber and Laurus nobilis.
dataset <- read.csv("mydata.csv")
We applied a linear model where
$$ y_{i} = \alpha + \beta*x_{i} $$
model <- lm(y ~ x)
We used the statistical language R
r citep(citation())
for all our analyses. These were implemented in dynamic rmarkdown documents using knitr
r citep(citation("knitr"))
and rmarkdown
r citep(citation("rmarkdown"))
packages. All the multilevel models were fitted with lme4
r citep(citation("lme4"))
.
Trees in forest A grew taller than those in forest B (mean height: r mean(25, 31, 28)
versus r mean(13, 19, 16)
m).
And many more cool results that get updated dynamically, e.g. see Table \@ref(tab:Table-mtcars) and Fig. \@ref(fig:scatterplot). Note Tables and Figures are cross-linked and numbered automatically. They could also appear in the middle of the document, not necessarily at the end.
See also Fig. \@ref(fig:SupplFig) and Table \@ref(tab:SupplTable) in the Supplementary Material.
Discuss.
Wrap up
On the shoulders of giants.
write.bibtex(file = "knitcitations.bib")
::: {#refs} :::
\eleft
\clearpage
\listoftables
\newpage
kable(head(iris), caption = "A glimpse of the famous Iris dataset.", booktabs = TRUE)
\clearpage
kable(mtcars[10:16, ], caption = "Now a subset of mtcars dataset.", booktabs = TRUE)
\clearpage
\listoffigures
\newpage
x <- rnorm(100) y <- jitter(x, 1000) plot(x, y)
\newpage
\blandscape
a <- sort(rnorm(100)) b <- c(rep("Group Small", 35), rep("Group Big", 65)) boxplot(a ~ b)
\elandscape
\clearpage
\beginsupplement
\clearpage
kable(head(iris), caption = "A supplementary table.", booktabs = TRUE)
\clearpage
x <- rnorm(100) y <- jitter(x, 1000) plot(x, y)
\newpage
# set eval = FALSE if you don't want this info (useful for reproducibility) to appear sessionInfo() # sessioninfo::session_info()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.