I am trying to create a Beamer presentation slide in RMarkdown / Knitr. On the slide, I would like to have a table and a shape, located side by side, and then another text below. I can only get to my attempt, as shown in the code. I would like to have a density graph located next to the Hmisc table.
I do not use Kable or xtable, since I get more control over tables with Hmisc.
Also, how to adjust the text characteristics (font size, type, color) in individual slides?
--- 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
thanks
source share