Here is a simplified cheat sheet as well for quick reference.

# # Make a Section Heading

Then write your text here…

## ## Make a Subsection Heading

Then write your text here…

### ### Make a Sub-subsection Heading

Then write your text here…

#### #### Make a Sub-sub-subsection Heading

Then write your text here…

##### ##### Yet another subsection

Then write your text here…

###### ###### The final sub heading

Then write your text here…

# Emphasizing Words

To italisize a word use the asterisk (Shift 8) *italisize*. To bold a word use the double asterisk **bold**. (Notice how the back tic  can be used to emphasize words as well.)

# Bullet Points

#### Simple Lists

To achieve the result:

• This is the first item.

• This is the second.

• This is the third.

Use the code:

* This is the first item.

* This is the second.

* This is the third.

#### Numbered Lists

To achieve the result:

1. This is the first item.

2. This is the second.

3. This is the third.

Use the code:

1. This is the first item.

2. This is the second.

3. This is the third.

#### Lettered Lists

To achieve the result:

1. This is the first item.

2. This is the second.

3. This is the third.

Use the code:

A) This is the first item.

B) This is the second.

C) This is the third.

#### Nested Lists

1. What is $$2+2$$?

1. 4

2. 8

2. What is $$3\times5$$?

1. 14

2. 15

1. What is $2+2$?

a. **4**

b. 8

2. What is $3\times5$?

a. 14

b. **15**

# Math Equations

Use the dollar signs $x=5$ to write $$x=5$$ or $z=\frac{x-\mu}{\sigma}$ to write $$z=\frac{x-\mu}{\sigma}$$. For a nicely centered equation use the double dollar signs  on separate lines

$$z = \frac{\bar{x}-\mu}{\frac{\sigma}{\sqrt{n}}}$$

to get $z = \frac{\bar{x}-\mu}{\frac{\sigma}{\sqrt{n}}}$

Or

$$H_0: \mu_1 = \mu_2$$
$$H_a: \mu_1 \neq \mu_2$$

to get $H_0: \mu_1 = \mu_2$ $H_a: \mu_1 \neq \mu_2$

# Insert a Picture

To add a picture to your document, say some notes you took down on paper from class,

![](./Images/insertPictureNotes.jpg)

# Tables

There are many ways to make tables in R Markdown. Here is a simple way to make a “pipe” table.

| Name          | Age           | Gender       |
|---------------|---------------|--------------|
| Jill          | 8             |  Female      |
| Jack          | 9             |  Male        |
Name Age Gender
Jill 8 Female
Jack 9 Male

# Themes

Notice in the YAML (at the top of the RMD file) there is a line that reads:

“theme: cerulean”

Other possible themes are

• “default”, “cerulean”, “journal”, “flatly”, “readable”, “spacelab”, “united”, and “cosmo”.

You can also change the highlighting by adding the line “highlight: tango” to the YAML as follows.

---
title: "Markdown Hints"
output:
html_document:
theme: cerulean
highlight: tango
---`

Other highlighting options are

• “default”, “tango”, “pygments”, “kate”, “monochrome”, “espresso”, “zenburn”, “haddock”, and “textmate”.

# More Information

Go to the rmarkdown.rstudio.com website for more information on how to use R Markdown.