Inserting graphics into R flexdashboards


Having troubles resizing graphics that I am inserting to flexdashboards. I can insert an image (*.png) but am unable to resize it.

include_graphics(imagePath, dpi=50)

I've tried setting width, height, dpi and the image remains the same.


If you're inserting these within code chunks, are the out.width and out.height options not working?

What happens if you run the following?

```{r  out.width = "50%", out.height = "50%"}



Tried those too, no change to the image. The image simply fills the flexdashboard chart area.



Maybe this section in the documentation will have your answer. It deals with using graphics inside flexdashboards