Resizing images in RMarkdown
问题 I'm trying to convert a R markdown .Rmd document to .pdf . Unfortunately, the images are too large. Is there any way to change the size of the image? I Can't use html, this is markdown to pdf. 回答1: Use this at the beginning of a chunk: Decimals assigned to fig.height and fig.width are interpreted as inches. Other units of measure also allowed if explicit. ```{r, echo=FALSE, fig.height=2.7, fig.width=9} #your R code here ``` 回答2: I found a comfortable solution by the combination of fig.height