Created
April 11, 2019 13:44
-
-
Save cderv/385abca9b6952be3f3db9c7bf401d9d1 to your computer and use it in GitHub Desktop.
Two column layout in rmarkdown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "test" | |
output: | |
html_document | |
--- | |
```{r setup, include=FALSE} | |
knitr::opts_chunk$set(echo = FALSE) | |
``` | |
## Two columns layout | |
by default, Rmarkdwon uses boostrap. Refer to | |
https://www.w3schools.com/bootstrap/bootstrap_grid_system.asp | |
:::: row | |
::: col-md-6 | |
```{r cars} | |
plot(pressure, main = paste("Lorem Ipsum ", | |
"Ipsum lorem ipsum. ", | |
"\nLorem ipsum", sep="")) | |
``` | |
::: | |
::: col-md-6 | |
```{r pressure} | |
plot(pressure, main = paste("Lorem Ipsum ", | |
"Ipsum lorem ipsum. ", | |
"\nLorem ipsum", sep="")) | |
``` | |
::: | |
:::: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment