Skip to content

Increasing width of figures #219

Answered by seananderson
seananderson asked this question in Q&A
Discussion options

You must be logged in to vote

You want out.width. E.g. out.width = "6in" or "\\textwidth". All the options: https://yihui.org/knitr/options/

fig.width controls the 'device' size when the plot is created but not the size on the PDF page. I.e. larger fig.width will make for smaller text and features on the plot given the same out.width.

You can also change the default output width in the index.Rmd file with knitr::opts_chunk$set() . E.g.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by seananderson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant