5.5 Figure alignment
The chunk option fig.align
specifies the alignment of figures. For example, you can center images with fig.align = 'center'
, or right-align images with fig.align = 'right'
. This option works for both HTML and LaTeX output, but may not work for other output formats (such as Word, unfortunately). It works for both plots drawn from R code chunks and external images included via knitr::include_graphics()
.
当前内容版权归 Chapman & Hall/CRC 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Chapman & Hall/CRC .