


With figh.height and fig.width we can define the size. R Markdown: The Definitive Guide Preface How to read this book Structure of the book Software information and conventions Acknowledgments About the Authors Yihui Xie J.J. When filing a bug report, please check the boxes below to confirm that you have provided us with the information we need. I am trying to generate figure number and captions in R markdown so that it can be cross referenced. Define figure size as global chunk option As a first R-chunk in your RMD document, define the general chunk settings like this: knitr::optschunkset (fig.width12, fig.height8) Chunk options We can set the chunk options for each chunk too. I set fig.cap TRUE in the beginning, but it displays 'Figure 1: TRUE', 'Figure 2: TRUE', etc.
