source("manuscript/global.R")
class: inverse, center, middle
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}$$
ggplot(iris, aes(Sepal.Length, Petal.Length)) + geom_point(aes(color=Species, size=Sepal.Width),alpha = 0.5) + geom_smooth(aes(col=Species), method="lm", se=F)
By using ggplot package, we can
.pull-left[ .code60[
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 )
] ]
.pull-right[
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)
]
.rmdWarning[ Lorem Ipsum is simply dummy text of the printing and typesetting industry. ]
.rmdtip[ Lorem Ipsum is simply dummy text of the printing and typesetting industry. ]
.Theorem[ This is a theorem about right triangles and can be summarised in the next equation $$x^2 + y^2 = z^2 $$ ]
class: inverse, center, middle
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.