title: "Statistical analysis of behavioral data "
date: "r format(Sys.time(), '%d %B, %Y')
"
author: [Ahmad Ehyaei, Sara Ershadmanesh]
affiliation: Max Planck Institute for Biological Cybernetics
location: Tübingen
titlepage: true
toc: true
content-has-page: true
logo-primary: src/icon/MPILogoGray.eps
logo-secondary: src/icon/MPIBCWhite.eps
output:
MPIThemes::latex_report
...
source("manuscript/global.R")
This is simple an R Markdown document to show MPIThemes features.
use #
sign to define chapter.
For definition sub chapter add ##
to first line and add name of sub chapter.
summary(cars)
We can run inline R code 2^10=
r 2^10
In RMarkdown we can use markdown syntax, such as unordered list items
Or use block quotes are written after >
, e.g.,
To be, or not to be, that is the question!
We can easily write math expressions by latex syntax. Inline LateX equations can be written in a pair of dollar signs $$f\left(k\right)=\binom{n}{k}p^k\left(1-p\right)^{n-k}$$
By using ggplot package, we can
ggplot(iris, aes(Sepal.Length, Petal.Length)) + labs(subtitle="Iris Data: Sepal Length vs Petal Length", title="Bubble chart") + geom_jitter(aes(col=Species, size=Sepal.Width)) + geom_smooth(aes(col=Species), method="lm", se=F)+ theme_bw()+ scale_color_mpi()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.