This is code and text behind the Advanced R programming book. The site is built with bookdown.
Omnigraffle:
-
Make sure that 100% is "one postscript point": this ensures canvas size matches physical size.
-
Use inconsolata 10pt, and export at 300 dpi scaled to 100%.
Book:
-
Inconsolata scaled (by fontspec) to match main font is 9.42pt.
-
Preview at 100% matches physical size of book. Maxiumum diagram width is 11cm.
RMarkdown
- Remove dpi specification from
include_graphics()
, instead relying oncommon.R
. Chunk should haveoutput.width = NULL
.