blob: 07115efb7a446fd02afe4f4f4fb2b73ee5091c26 [file] [log] [blame]
Brent Thorne7f0acb42018-12-06 09:37:38 -05001---
2title: 'Using \color{Red} `posterdown` \color{White} to generate reproducible conference posters via RMarkdown > Knitr > Markdown > Pandoc > Latex > PDF workflow as well as long titles...'
3author: "Brent Thorne"
4bibliography: MyLibrary
5output: posterdown::posterdown_memoir
6---
7
8```{r, include=FALSE}
9knitr::opts_chunk$set(echo = FALSE, results = 'asis',fig.height = 3.5, fig.width = 4.5, out.width = "100%", warning = FALSE, fig.align = 'center', message = FALSE, dev='cairo_pdf')
10```
11
12# Introduction
13
14Welcome to `posterdown` ! This is my attempt to provide a semi-smooth workflow for those who wish to take their `RMarkdown` skills to the conference world. Many creature comforts frim `RMarkdown` are available in this package such as `Markdown` section notation, figure captioning, and even citations like this one [@holden_identifying_2012] The rest of this example poster will show how you can insert typical conference poster features into your own document.
15
16# Study Site
17
18Here is a map made to show the study site using `ggplot2`, `ggspatial`, and `sf`. Lorem ipsum dolor sit amet, [@middleton_geological_nodate] consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Phasellus vestibulum lorem sed risus ultricies tristique nulla. Mauris vitae ultricies leo integer malesuada nunc vel risus commodo. Suspendisse potenti nullam ac tortor vitae. Enim nunc faucibus a pellentesque sit amet porttitor eget. \vspace{15mm}
19
20```{r, fig.width=4.5, out.width="80%", fig.cap='This is a map of Canada, the ggspatial package is great for GIS folks in R!', cache=TRUE}
21library(ggplot2)
22library(ggspatial)
23library(ggthemes)
24library(sf)
25
26canada <- read_sf("data/Canada.geojson")
27
28
29ggplot() +
30 ggspatial::layer_spatial(canada, fill = "grey") +
31 ggspatial::annotation_north_arrow(location = "br", which_north = "true", style = north_arrow_nautical()) +
32 coord_sf() +
33 theme_solarized() +
34 NULL
35
36```
37
38
39# Objectives
40
41\large
42
431. Easy to use reproducible poster design.
442. Integration with `RMarkdown`.
453. Easy transition from `posterndown` to `thesisdown` or `rticles`
46
47\small
48
49# Methods
50
51This package uses the same workflow approach as the `RMarkdown` you know and love. Basically it goes from RMarkdown > Knitr > Markdown > Pandoc > Latex > PDF
52
53# Results
54
55```{r}
56library(kableExtra)
57library(ggplot2)
58
59data("iris")
60
61kable(iris[1:4,],align = "c", caption = "Tables are a breeze with Kable and Kable extra package!", booktabs = T) %>%
62 kable_styling(latex_options = "striped")
63
64```
65
66\vspace{1in}
67
68```{r, out.width='75%', fig.width=4, fig.height=3, fig.cap='A typical plot using ggplot using the classic iris dataset.'}
69
70library(ggplot2)
71library(ggthemes)
72
73ggplot(data = iris, aes(x = Sepal.Length, y = Sepal.Width, colour = Species)) +
74 geom_point() +
75 theme_fivethirtyeight() +
76 labs(x = "Sepal Length", y = "Sepeal Width") +
77 NULL
78
79```
80
81\vspace{1in}
82
83```{r, out.width='85%', fig.width=4.5, fig.height=4, fig.cap='Another typical plot using ggplot, this time with a different theme and r code chunk options for fig.width and fig.height.'}
84
85library(ggplot2)
86library(ggthemes)
87
88ggplot(data = iris, aes(x = Sepal.Length, y = Sepal.Width, colour = Species)) +
89 geom_point() +
90 theme_hc() +
91 labs(x = "Sepal Length", y = "Sepeal Width") +
92 NULL
93
94```
95
96\vspace{1in}
97
98```{r, out.width='80%', fig.width=4.5, fig.align='center', echo=TRUE, fig.height=5, fig.cap='Another figure showing how base R plots might look on this poster!'}
99
100# Here is some code for people
101# to look at and be in awe of!!!!
102library(ggplot2)
103library(ggthemes)
104
105ggplot(data=iris,
106 aes(x = Sepal.Width,
107 y = Sepal.Length,
108 colour = Species)) +
109 geom_point() +
110 theme_stata() +
111 NULL
112
113```
114
115
116# Next Steps
117
118There is still **A LOT** of work to do on this package which include (but are note limited to):
119
120- Better softcoding for front end user options in YAML such as `posterwidth: 45in`.
121- Images in the title section for logo placement which is a common attribut to posters as far as I have come to know.
122- Figure out compatiability with `natbib` which wasn't working during the initial set up.
123- MUCH BETTER PACKAGE DOCUMENTATION. For example, there is nothing in the README...
124- Include References section only if initiated by the user like in RMarkdown.
125
126\small