#Headings You can make levels of headings

One hash Level heading

Two hash for smaller

Three hash for for even smaller

and so on

Bold and italics

Two astericks for BOLD

One astercks for italic

You can make bullet points with dashes

Quotes

Get qoutes using a >

“Theres is no such thing as a silly question - Stacey”

Pictures/Gifs/Tweets

easy to embed all kinds of things in Rmarkdown documents

Pictures

use ![](name of document in working directory) use backticks aa to tell R not to use the words

Tweets

via GIPHY

What about code

We can intersperse notes and code “chunks” Use green pulldown

or use option-command-I

Run the code using the green arrow or command-enter

Load the packages

library(tidyverse)
library(readr)

click on wheel to tell it not to show all the error and extra info

read the beaches data in

beaches <- read_csv("data/sydneybeaches.csv")

Let’s draw something

beaches %>%
  group_by(Site) %>%
  summarise(meanbugs = mean(`Enterococci (cfu/100ml)`, na.rm = TRUE)) %>%
  ggplot(aes(x = Site, y = meanbugs)) +
  geom_col() +
  coord_flip()

Export formats

Finish analysis Want to share with someone now Use the default html, or pdf or word to export

YAML-Yet Another Markdown Language

Dropdown on Knit button for each one

pdf- install.package(“tinytex”) then library(tinytex) it didn’t work for R lady either so figure this out later

Share with other people

Publish using RPubs to share on the web straight from R Studio