From: François Michonneau Date: Wed, 22 Aug 2018 19:28:49 +0000 (-0400) Subject: make figures a little larger and higher definition X-Git-Url: https://git.arvados.org/rnaseq-cwl-training.git/commitdiff_plain/c9fe2d8c2a8cde408bbd9c75e9bcee22bc16a027 make figures a little larger and higher definition --- diff --git a/bin/chunk-options.R b/bin/chunk-options.R index f943584..8ac9572 100644 --- a/bin/chunk-options.R +++ b/bin/chunk-options.R @@ -29,7 +29,9 @@ knitr_fig_path <- function(prefix) { opts_chunk$set(tidy = FALSE, results = "markup", comment = NA, fig.align = "center", fig.path = "fig/rmd-", - fig.process = fix_fig_path) + fig.process = fix_fig_path, + fig.width = 8.5, fig.height = 8.5, + fig.retina = 2) # The hooks below add html tags to the code chunks and their output so that they # are properly formatted when the site is built. @@ -43,7 +45,7 @@ hook_in <- function(x, options) { hook_out <- function(x, options) { x <- gsub("\n$", "", x) stringr::str_c("\n\n~~~\n", - paste0(x, collapse="\n"), + paste0(x, collapse="\n"), "\n~~~\n{: .output}\n\n") }