Command line tools: R (version 4.4.2), pandoc
- Install packages within R
R> install.packages("rmarkdown") # Rmarkdown support R> install.packages("readr") # read CSV data R> install.packages("posterdown") # generate poster
- Prepare the data
- Data for tables should be provided in
.csv
file - Bibliography data should be provided in
.bib
file - Images
- Data for tables should be provided in
- Write poster contents in an R Markdown file
- The YAML section:
- title and author
author: - name: SZ affil: 1, 2 affiliation: - num: 1 address: Department of XXX - num: 2 address: Department of YYY
- poster sizes
poster_width: "24in" poster_height: "18in"
- logo
logoleft_name: "./logo.png" logoright_name: "./logo.png"
- bibliography:
bibliography: "reference.bib"
- poster style:
output: posterdown::posterdown_html
- title and author
- The markdown section: write using standard markdown syntax
- hide codes in the poster
```{r setup, include=FALSE} knitr::opts_chunk$set(echo = FALSE) ```
- table generation
```{r Table1, out.width='100%', warning = FALSE, message = FALSE} library("readr") models = read_csv("./models.csv") knitr::kable(models, align = 'c',"html") ```
- font size for the references
<font size="3.5"> <div id="refs"></div> </font>
- hide codes in the poster
- The YAML section:
- Compile the file within R
- create the poster in HTML format
R> rmarkdown::render("poster.Rmd")
- create the poster in PDF format (Requires Chrome browser)
R> pagedown::chrome_print("poster.Rmd")
- create the poster in HTML format
- More advanced settings: modify the template HTML file
- MacOS:
/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/posterdown/rmarkdown/templates/posterdown_html/resources/template.html
- Linux (Fedora):
~/R/x86_64-redhat-linux-gnu-library/4.4/posterdown/rmarkdown/templates/posterdown_html/resources/template.html
- MacOS:
Example file for poster.Rmd
:
Result after compilation:
Back to Memo