Tom
Tom

Reputation: 5052

Plot not filling the slide in R presentation

If I make a default R presentation in Rstudio, everything looks okay, but the plot doesn't fill the whole slide.

enter image description here

This is the same whether in full screen or in the browser.

The documentation says "When the only content on a slide is an image, then the image will fill all available space on the slide". And it mentions that same goes for plots.

What am I missing here? What do I need to do to have the plot fill the whole slide?

I updated my RStudio to Version 0.99.903

Upvotes: 6

Views: 1244

Answers (1)

eotp
eotp

Reputation: 342

Use out.width="100%" in your chunk options

{r, echo=FALSE, out.width="100%"}

Upvotes: 3

Related Questions