source("manuscript/global.R")

\newpage

RMarkdown

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)


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