brentthorne | b2a223c | 2018-12-05 22:34:41 -0500 | [diff] [blame] | 1 | --- |
| 2 | title: 'Using \color{Red} `posterdown` \color{White} to generate reproducible conference posters via RMarkdown > Knitr > Markdown > Pandoc > Latex > PDF workflow as well as long titles...' |
| 3 | author: "Brent Thorne" |
| 4 | bibliography: MyLibrary |
| 5 | output: posterdown::posterdown_memoir |
| 6 | --- |
| 7 | |
| 8 | ```{r, include=FALSE} |
| 9 | knitr::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 | |
| 14 | Welcome 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 | |
| 18 | Here 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 | |
brentthorne | 93d7601 | 2018-12-05 23:19:59 -0500 | [diff] [blame] | 20 | ```{r, fig.width=4.5, out.width="80%", fig.cap='This is a map of Canada, projected using the NAD 83 UTM Zone 7 Datum.', cache=TRUE} |
brentthorne | b2a223c | 2018-12-05 22:34:41 -0500 | [diff] [blame] | 21 | library(ggplot2) |
| 22 | library(ggspatial) |
| 23 | library(ggthemes) |
| 24 | library(sf) |
| 25 | |
| 26 | canada <- read_sf("data/Canada.geojson") |
| 27 | |
| 28 | |
| 29 | ggplot() + |
| 30 | ggspatial::layer_spatial(canada, fill = "grey") + |
brentthorne | b2a223c | 2018-12-05 22:34:41 -0500 | [diff] [blame] | 31 | coord_sf() + |
| 32 | theme_solarized() + |
| 33 | NULL |
| 34 | |
| 35 | ``` |
| 36 | |
| 37 | |
| 38 | # Objectives |
| 39 | |
| 40 | \large |
| 41 | |
| 42 | 1. Easy to use reproducible poster design. |
| 43 | 2. Integration with `RMarkdown`. |
| 44 | 3. Easy transition from `posterndown` to `thesisdown` or `rticles` |
| 45 | |
| 46 | \small |
| 47 | |
| 48 | # Methods |
| 49 | |
| 50 | This package uses the same workflow approach as the `RMarkdown` you know and love. Basically it goes from RMarkdown > Knitr > Markdown > Pandoc > Latex > PDF |
| 51 | |
| 52 | # Results |
| 53 | |
| 54 | ```{r} |
| 55 | library(kableExtra) |
| 56 | library(ggplot2) |
| 57 | |
| 58 | data("iris") |
| 59 | |
brentthorne | 93d7601 | 2018-12-05 23:19:59 -0500 | [diff] [blame] | 60 | kable(iris[1:4,],align = "c", caption = "Hopefully this works without much of a headache!", booktabs = T) %>% |
brentthorne | b2a223c | 2018-12-05 22:34:41 -0500 | [diff] [blame] | 61 | kable_styling(latex_options = "striped") |
| 62 | |
| 63 | ``` |
| 64 | |
brentthorne | b2a223c | 2018-12-05 22:34:41 -0500 | [diff] [blame] | 65 | ```{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!'} |
| 66 | |
| 67 | # Here is some code for people |
| 68 | # to look at and be in awe of!!!! |
| 69 | library(ggplot2) |
| 70 | library(ggthemes) |
| 71 | |
| 72 | ggplot(data=iris, |
| 73 | aes(x = Sepal.Width, |
| 74 | y = Sepal.Length, |
| 75 | colour = Species)) + |
| 76 | geom_point() + |
| 77 | theme_stata() + |
| 78 | NULL |
| 79 | |
| 80 | ``` |
| 81 | |
brentthorne | 93d7601 | 2018-12-05 23:19:59 -0500 | [diff] [blame] | 82 | ```{r, out.width='75%', fig.width=4, fig.height=3, fig.cap='A typical plot using ggplot.'} |
| 83 | |
| 84 | library(ggplot2) |
| 85 | library(ggthemes) |
| 86 | |
| 87 | ggplot(data = iris, aes(x = Sepal.Length, y = Sepal.Width, colour = Species)) + |
| 88 | geom_point() + |
| 89 | theme_fivethirtyeight() + |
| 90 | labs(x = "Sepal Length", y = "Sepeal Width") + |
| 91 | NULL |
| 92 | |
| 93 | ``` |
brentthorne | b2a223c | 2018-12-05 22:34:41 -0500 | [diff] [blame] | 94 | |
| 95 | # Next Steps |
| 96 | |
brentthorne | 93d7601 | 2018-12-05 23:19:59 -0500 | [diff] [blame] | 97 | Pellentesque habitant morbi tristique senectus et netus. Magnis dis parturient montes nascetur ridiculus mus mauris vitae ultricies. Nibh nisl condimentum id venenatis. Lorem ipsum dolor sit amet consectetur adipiscing elit duis. Eget aliquet nibh praesent tristique magna sit amet purus. Orci phasellus egestas tellus rutrum. Mauris cursus mattis molestie a. Amet cursus sit amet dictum sit. Tellus id interdum velit laoreet. Tortor at risus viverra adipiscing. Ullamcorper malesuada proin libero nunc. Elit ullamcorper dignissim cras tincidunt lobortis feugiat vivamus. Eget dolor morbi non arcu risus quis. Pulvinar pellentesque habitant morbi tristique senectus. |
brentthorne | b2a223c | 2018-12-05 22:34:41 -0500 | [diff] [blame] | 98 | |
| 99 | \small |