The control size of the figure in the presentation of Rstudio

I am creating a presentation in RStudio (.Rpres). I have a too big figure and goes beyond the screen. How can I reduce it?

Too big, you need to reduce the size.

Figure 1 ======================================================== ![alt text](fig1) 
+7
r rstudio r-markdown presentation rpres
source share
2 answers

This should work:

 <div align="center"> <img src="fig1.jpg" width=800 height=600> </div> 

Just adjust the width and height as needed.

+6
source share

you can use

 include_graphics(path, auto_pdf = TRUE, dpi = NULL) 

in the block, and then set the image height and width parameters in the fragment parameters. This should work with all output formats.

0
source share

All Articles