Glen Glen - 2 months ago 19
R Question

Control size of figure in Rstudio presentation

I'm creating a presentation in RStudio (.Rpres). I have a figure that is too large and extends beyond the screen. How can I reduce it?

Too big, need to reduce size

Figure 1
========================================================
![alt text](fig1)

Answer

This should work:

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

Simply adjust the width and height as required.