From: Don Armstrong Date: Thu, 10 Aug 2017 15:41:15 +0000 (-0700) Subject: change default figure size X-Git-Url: https://git.donarmstrong.com/?p=debbugs-presentations.git;a=commitdiff_plain;h=2db991196249eb1eee4e524aeb496672db63d6a2 change default figure size --- diff --git a/debbugs.Rnw b/debbugs.Rnw index 01f123f..7494895 100644 --- a/debbugs.Rnw +++ b/debbugs.Rnw @@ -78,16 +78,16 @@ % - release to experimental -<>= +<>= 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, ...) })