--- output: pdf_document: citation_package: natbib latex_engine: xelatex keep_tex: true dev: cairo_pdf template: tex_templates/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: assets/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 . 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