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")

RMarkdown+Latex

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.

Code Embedding

summary(cars)

We can run inline R code 2^10= r 2^10

Markdown

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!

Latex

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}$$

Plot

By using ggplot package, we can

ggplot(iris, aes(Sepal.Length, Petal.Length)) + 
  labs(subtitle="Sepal Length vs Petal Length",
       title="Bubble chart") + 
  geom_point(aes(color=Species, size=Sepal.Width),alpha = 0.5) +
  geom_smooth(aes(col=Species), method="lm", se=F)

Block Environments

:::: {.rmdThink data-latex=""} Lorem Ipsum is simply dummy text of the printing and typesetting industry. ::::

:::: {.rmdthink data-latex=""} Lorem Ipsum is simply dummy text of the printing and typesetting industry. ::::

:::: {.Theorem data-latex="{Pythagorean theorem}"} This is a theorem about right triangles and can be summarised in the next equation [ x^2 + y^2 = z^2 ] ::::



Ehyaei/MPIThemes documentation built on Jan. 13, 2022, 7:28 p.m.