I want to center an image and/or text using R Markdown and knit a PDF report out of it.
I have tried using:
->Text<-
->![](image1.jpg)<-
That does not do the trick! Any other way of getting this done?
If you are centering the output of an R code chunk, e.g., a plot, then you can use the fig.align
option in knitr.
```{r fig.align="center"}
plot(mtcars)
```