]> git.donarmstrong.com Git - debbugs-presentations.git/commitdiff
change default figure size
authorDon Armstrong <don@donarmstrong.com>
Thu, 10 Aug 2017 15:41:15 +0000 (08:41 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 10 Aug 2017 15:41:15 +0000 (08:41 -0700)
debbugs.Rnw

index 01f123f1ffc17f81acf5eb1854cbbdfbfbd712ea..7494895bcb953c4ccbf808d88ec796e26fba21f8 100644 (file)
 %    - release to experimental
 
 
-<<load.libraries,echo=FALSE,results="hide",error=FALSE,message=FALSE>>=
+<<load.libraries,echo=FALSE,results="hide",error=FALSE,message=FALSE,cache=FALSE>>=
 library(lattice)
 library(xtable)
 library(ggplot2)
 library("scales")
 library(reshape2)
 library("data.table")
-opts_chunk$set(dev="cairo_pdf",out.width="\\textwidth",out.height="0.8\\textheight",out.extra="keepaspectratio",fig.width=6,fig.height=4)
+opts_chunk$set(dev="cairo_pdf",out.width="\\textwidth",out.height="0.8\\textheight",out.extra="keepaspectratio",fig.width=6/1.2,fig.height=4/1.2)
 opts_chunk$set(cache=TRUE, autodep=TRUE)
-options(device = function(file, width = 6, height = 4, ...) {
+options(device = function(file, width = 6/1.2, height = 4/1.2, ...) {
   cairo_pdf(tempfile(), width = width, height = height, ...)
 })