Hi,
In the code below I am looking to show text on a slide then below that show a plot. I am trying to do that in a one-column format on the "Slide with Plot" and in a two-column format on the "Two Column Slide". Can you advise how that is possible?
Below the text appears but the plots do not appear using plot() or print(plot()).
Thank you
---
params:
set_title: "My Title"
title: "Test"
subtitle: "Test"
output:
powerpoint_presentation:
reference_doc: template.pptx
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE , comment = NA, message= FALSE, warning = TRUE)
```
2## R Markdown
This is an R Markdown presentation. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document.
## Slide with Bullets
- Bullet 1
- Bullet 2
- Bullet 3
## Slide with R Output
```{r cars, echo = TRUE}
summary(cars)
```
## Slide with Plot
some text
```{r pressure, echo= FALSE, comment = FALSE, message= FALSE, warning = FALSE, results='asis'}
cat("\n\n more text")
plot(pressure)
cat("\n\n")
```
## Two Column Slide
:::::::::::::: {.columns}
::: {.column}
1st column test
```{r pressure2, echo= FALSE, comment = FALSE, message= FALSE, warning = FALSE, results='asis'}
cat("\n\n More 1st column text \n\n")
plot(pressure)
cat("\n\n")
```
:::
::: {.column}
2nd column text
```{r pressure80}
print(plot(pressure))
```
:::
::::::::::::::