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')

Introduction

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 from 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.

Study Site

Here is a map made to show the study site using ggplot2, ggspatial, and sf and you can even reference this with a hyperlink, this will take you to Figure \ref{mymapfig}. Lorem ipsum dolor sit amet, [@middleton_geological_nodate] consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \vspace{1cm}

```r', cache=TRUE} library(ggplot2) library(ggspatial) library(tidyverse) library(ggthemes) library(sf)

canada <- read_sf("data/Canada.geojson")

yukon <- canada %>% filter(PROV == "YT")

ggplot() + ggspatial::layer_spatial(canada,fill = "grey80", colour = "grey60") + ggspatial::layer_spatial(yukon,fill = "yellow", colour = "black") + ggspatial::annotation_north_arrow(location = "br",pad_y = unit(1,"cm"),pad_x = unit(0.7,"cm"), which_north = "true", style = north_arrow_orienteering()) + ggspatial::annotation_scale(location = "br",style = "ticks") + coord_sf() + theme_pander() + theme(legend.position = "none") + NULL

# Objectives

1. Easy to use reproducible poster design. 
2. Integration with `RMarkdown`.
3. Easy transition from `posterdown` to `thesisdown` or `rticles`

\lipsum[2]
\lipsum[4]

# Methods

This package uses the same workflow approach as the `RMarkdown` you know and love. Basically it goes from RMarkdown > Knitr > Markdown > Pandoc > Latex > PDF.

# Results

Usually you want to have a nice table displaying some important results that you have calcualated. In posterdown this is as easy as using the `kable` table formatting you are probably use to as per typical `RMarkdown` formatting. I suggesting checking out the `kableExtra` package and its in depth documentation on customizing these tables found [here](https://haozhu233.github.io/kableExtra/awesome_table_in_pdf.pdf).

\vspace{1cm}

```r
library(kableExtra)
library(ggplot2)

data("iris")

kable(iris[1:4,],align = "c", caption = "Tables are a breeze with Kable and Kable extra package!", booktabs = TRUE) %>% 
  kable_styling(latex_options = c("striped","HOLD_position"),full_width = TRUE, font_size = 25)

\vspace{2cm}

library(tidyverse)
library(patchwork)
library(ggthemes)

theme_set(theme_gray() + theme_tufte() + theme(legend.position = "none"))

base <- ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, colour = Species))

p_point <- base + geom_point()
p_line  <- base + geom_line() 
p_area  <- base + geom_area()
p_box1  <- ggplot(iris) + geom_boxplot(aes(x = Species, y = Sepal.Length, fill = Species))
p_box2  <- ggplot(iris) + geom_boxplot(aes(x = Species, y = Sepal.Width, fill = Species))

p_line + 
  {p_point + p_box1} +
  plot_layout(ncol = 1) + plot_annotation(tag_levels = "a", tag_prefix = "(",tag_suffix = ")")
library(ggplot2)
library(ggthemes)

ggplot(data = iris, aes(x = Sepal.Length, y = Sepal.Width, colour = Species)) +
  geom_point() +
  theme_tufte() +
  labs(x = "Sepal Length", y = "Sepeal Width") +
  NULL
# Here is some code for people
# to look at and be in awe of!!!!
library(ggplot2)
library(ggthemes)

ggplot(data=iris,
       aes(x = Sepal.Width,
           y = Sepal.Length,
           colour = Species)) +
  geom_point() +
  theme_tufte() +
  NULL

\lipsum[1-2]

Next Steps

There is still A LOT of work to do on this package which include (but are note limited to):

\small\printbibliography



softloud/metasim documentation built on July 15, 2019, 8:02 p.m.