If expressing size in inches doesn’t make sense to you, you can use dpi, which will allow you to know think of dpi*inches as what to expect in terms of pixels. If you supply fig.dim with fig.asp, the latter will be ignored. There is also fig.dim, which will take the two values you would have specified for fig.width and fig.height. You can also supply fig.width plus fig.asp which will produce a height that is fig.width*fig.asp. Furthermore, these settings will not affect interactive and possibly other images in HTML documents except in unexpected ways 9. While you can use them in HTML for static images as those produced by ggplot2, there isn’t a reason I can think of to express the size in inches for an electronic display. Oddly, these are expressed in inches, but at least it is easy enough to manipulate to your liking. For non-HTML, the chunk options of fig.width and fig.height are generally used for figure dimensions. To begin, there are different systems for PDF or MS Word vs. HTML-based documents. Why you should switch from your current approach.Dynamic data analysis & report generation.