-
Notifications
You must be signed in to change notification settings - Fork 737
/
svm-article2-example.Rmd
116 lines (83 loc) · 3.26 KB
/
svm-article2-example.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
output:
pdf_document:
citation_package: natbib
latex_engine: xelatex
keep_tex: true
dev: cairo_pdf
template: ../svm-latex-article2.tex
biblio-style: apsr
title: "Another Pandoc Markdown Article Starter and Template"
thanks: "Replication files are available on the author's Github account (http://github.com/svmiller/svm-r-markdown-templates). **Current version**: `r format(Sys.time(), '%B %d, %Y')`; **Corresponding author**: steven.v.miller@gmail.com."
author:
- name: Steven V. Miller
affiliation: Clemson University
- name: A Second Author Who Did Less Work
affiliation: The Ohio State University
- name: A Graduate Student
affiliation: University of Alabama
abstract: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet libero justo. Pellentesque eget nibh ex. Aliquam tincidunt egestas lectus id ullamcorper. Proin tellus orci, posuere sed cursus at, bibendum ac odio. Nam consequat non ante eget aliquam. Nulla facilisis tincidunt elit. Nunc hendrerit pellentesque quam, eu imperdiet ipsum porttitor ut. Interdum et malesuada fames ac ante ipsum primis in faucibus. Suspendisse potenti. Duis vitae nibh mauris. Duis nec sem sit amet ante dictum mattis. Suspendisse diam velit, maximus eget commodo at, faucibus et nisi. Ut a pellentesque eros, sit amet suscipit eros. Nunc tincidunt quis risus suscipit vestibulum. Quisque eu fringilla massa."
keywords: "pandoc, r markdown, knitr"
date: "`r format(Sys.time(), '%B %d, %Y')`"
geometry: margin=1in
#fontfamily: libertineotf
mainfont: cochineal
sansfont: Linux Biolinum O
fontsize: 11pt
# spacing: double
endnote: no
# pandocparas: TRUE
sansitup: TRUE
bibliography: master.bib
header-includes:
- \usepackage{longtable}
- \LTcapwidth=.95\textwidth
- \linespread{1.05}
- \usepackage{hyperref}
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(tidyverse)
library(stevemisc)
```
# Introduction
\kant[1]
## A Subsection in the Introduction
\kant[2-5]
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>. Here's an obligatory citation to @xie2013ddrk.
# Literature Review
\kant[6-14]
# Research Design
\kant[15]
## Another Subsection From Kant, Who Writes as If He Does Not Want to Be Read
\kant[16-18]
## Another Subsection
\kant[19-23]
```{r, echo=F, fig.cap = "A Simple ggplot with the mtcars Data in R", message=F, fig.width=8}
mtcars %>%
ggplot(.,aes(wt, mpg)) + geom_point() +
theme_steve_web() +
geom_smooth(method="lm") +
labs(caption = "Data: 1974 Motor Trend US magazine",
x = "Weight (1,000 Pounds)",
y = "(U.S.) Miles per Gallon")
```
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
```{r cars}
summary(cars)
```
# Results
\kant[24]
## Including Plots
You can also embed plots, for example:
```{r pressure, echo=FALSE}
plot(pressure)
```
Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.
\kant[25-35]
```{r}
plot(mtcars)
```
# Conclusion
\kant[36-40]
\newpage