library(here) # For project-specific paths library(ggplot2) # For plotting library(tidyverse) # For tidy manipulation of data library(stringr) # For string manipulation knitr::opts_chunk$set(echo = T, warning = F, message = F) # Set defaults for ggplots theme_rhr <- theme_set( theme_bw(base_family = "Helvetica", base_size = 10) + theme(panel.grid.major.x = element_blank(), legend.position = "top", axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5), axis.title.y = element_text(vjust = 0.6), panel.spacing = unit(0.1, "lines")) )
Aim: What's the major aim of this .Rmd?
What is the background for running this analysis?
Describe methods in text, as you would do in a paper.
Following section includes any intermediary code used in this .Rmd
.
source(here::here("", ""))
For figures, need to make sure your keys don't have a "_" in them and have fig.cap = "figure caption"
to refer to them in the text (\@ref(fig:iris-figure))
iris_10 <- data.frame(iris[1:10,]) iris_10 %>% ggplot(aes(x = Sepal.Length, y = Sepal.Width) ) + geom_point()
What are the conclusions to be drawn from this analysis?
What are the next steps after this?
Show/hide
# Session info library("sessioninfo") options(width = 120) session_info()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.