Inserting graphics into R flexdashboards


#1

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.
Jef


#2

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%"}
include_graphics(imagePath) 
```

#3

jdb

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

Jeff


#4

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