Tabelas e figuras lado a lado em Knitr ou RMarkdown Beamer
Estou tentando criar um slide de apresentação Beamer no RMarkdown / Knitr. No slide, gostaria de colocar uma tabela e uma figura lado a lado e, em seguida, mais texto embaixo. Eu só posso chegar até a minha tentativa, conforme mostrado no código. Eu gostaria de ter o gráfico de densidade colocado ao lado da mesa Hmisc.
Não estou usando o Kable ou o xtable, pois tenho mais controle sobre as tabelas com o Hmisc.
Além disso, como posso ajustar as características do texto (tamanho da fonte, tipo, cor) nos slides individuais?
---
title: "BeamerTest1"
subtitle: Beamer Subtitle
author: "Author"
output:
beamer_presentation:
theme: CambridgeUS
colortheme: "beaver"
fonttheme: "structurebold"
---
## Slide with Table, Figure and Text
My topic for this slide
\scalebox{0.35}{
```{r hmisc-table, echo=FALSE, message=FALSE, results='asis'}
library(Hmisc)
latex(head(mtcars), file='', table.env=FALSE, center='none')
```
}
```{r, echo=FALSE, fig.show='hold', fig.height=1, fig.width=2.5}
library(ggplot2)
mt <- ggplot(mtcars, aes(mpg)) + geom_density(alpha=.2, fill="#FF6666") +
theme(axis.title.x = element_text(size=10),axis.text.x = element_text(size=8),
axis.title.y = element_text(size=10),axis.text.y = element_text(size=8))
mt
```
- Here is some Bullet Text
- And some more
- Subtext
- More Subtext
obrigado