I would like to show two images stacked horizontally in a R Markdown report, but, no matter how much I downsize them, R Markdown keeps stacking them horizontally. Any suggestions? Ideally, the solution should work independently of the output, and without having to write CSS code (CSS! ). Realistically, a solution which at least works with HTML output will still be ok. Thanks!
Sample .Rmd
code:
---
title: "test"
output: html_document
---
```{r setup, include=FALSE}
library(knitr)
opts_chunk$set(echo = FALSE,
out.width = "75%",
fig.align = "center")
```
## Show images
```{r image}
include_graphics(c("doggy.jpeg", "kitty.jpeg"))
```
HTML Output:
And here are the images used in this post: