Learn more about presentation in R

Andranik Stepanyan
Sun Jun 08 15:40:02 2014

Font

By default R Presentations use the Lato font. However it is possible to customize the font used within a presentation using the font-family field of the first slide.

Smaller Text

  • If you need smaller text for certain paragraphs, you can enclose text in the <small> tag.

Using Custom CSS

  • You can explicitly specify a stylesheet file using the css field on the title slide. For Example:
    • css: custom.css

Classes

Paragraph this text will be red

Wie benuzt man diverse Tools wie Absätze, Schreibstill usw. ?

Man setzt vor dem Beginn der Folie den Namen ein. Mit anderen Worten vor '===' Zeichen.

Eine Ueberschrift erscheint automatisch solange man es nicht explizit mit dem befehl title: false deaktiviert

  • Was werden wir heute lernen?
  • Welche Ziele hat diese Veranstaltung?
  • Was erwarten wir von Ihnen.

\( x^2 \)

Slide With Code

  • To display the output of a code chunck but not the underlying R code you specify echo=FALSE option.
  • To display R code without evaluating it, you specify the eval=FALSE option.
summary(cars)
     speed           dist    
 Min.   : 4.0   Min.   :  2  
 1st Qu.:12.0   1st Qu.: 26  
 Median :15.0   Median : 36  
 Mean   :15.4   Mean   : 43  
 3rd Qu.:19.0   3rd Qu.: 56  
 Max.   :25.0   Max.   :120  

Slide With Plot

plot of chunk unnamed-chunk-2

Wie kann man Bilder hinzufuegen?

  • Einige Punkte, die man beachten soll!
  • ***” Verwendung teilt Layout in zwei Teile

alt text

  • Drei Sterne nebeneinander “***” definieren den Layout
  • Aufpassen bei der Verwendung!
  • Mit dem Befehl ![alt text](myimage.png) kann man Bilder hinzufuegen

Equations with MathJax

  • $equation$ for inline equation (note there must not be whitespace adjacent to the $ delimiters)
  • $$ equiation $$ for display equations
  • <math ...> </math> for MathML equations

Beispiel The Arithmetic mean is equal to \( \frac{1}{n}\sum_{i=i}^{n} x_{i} \), or the summation of n numbers divided by n.

\[ \begin{aligned} \dot{x} & = \sigma(y-x) \\ \dot{y} & = \rho x - y - xz \\ \dot{z} & = -\beta z + xy \end{aligned} \]