Skip to content

Instantly share code, notes, and snippets.

@crsh
Created November 7, 2017 09:31
Show Gist options
  • Save crsh/f1739bc4a6ccc634b72c11222c1c9cdc to your computer and use it in GitHub Desktop.
Save crsh/f1739bc4a6ccc634b72c11222c1c9cdc to your computer and use it in GitHub Desktop.
Landscape figures in papaja documents
---
title : "The title"
shorttitle : "Title"
author:
- name : "First Author"
affiliation : "1"
corresponding : yes # Define only one corresponding author
address : "Postal address"
email : "my@email.com"
- name : "Ernst-August Doelle"
affiliation : "1,2"
affiliation:
- id : "1"
institution : "Wilhelm-Wundt-University"
- id : "2"
institution : "Konstanz Business School"
author_note: >
Complete departmental affiliations for each author (note the indentation, if you start a new paragraph).
Enter author note here.
abstract: >
Enter abstract here (note the indentation, if you start a new paragraph).
keywords : "keywords"
wordcount : "X"
bibliography : ["r-references.bib"]
figsintext : no
figurelist : no
tablelist : no
footnotelist : no
lineno : yes
mask : no
lang : "english"
class : "man"
output : papaja::apa6_pdf
header-includes:
- \usepackage{rotating}
- \DeclareDelayedFloatFlavor{sidewaysfigure}{figure}
---
```{r include = FALSE}
library("papaja")
```
# Methods
We report how we determined our sample size, all data exclusions (if any), all manipulations, and all measures in the study. <!-- 21-word solution (Simmons, Nelson & Simonsohn, 2012; retrieved from http://ssrn.com/abstract=2160588) -->
## Participants
## Material
## Procedure
## Data analysis
We used `r cite_r("r-references.bib")` for all our analyses.
```{r fig.env = "sidewaysfigure", fig.cap = "test", out.extra = ""}
plot(1:10, 1:10)
```
# Results
# Discussion
\newpage
# References
```{r create_r-references}
r_refs(file = "r-references.bib")
```
\setlength{\parindent}{-0.5in}
\setlength{\leftskip}{0.5in}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment