make figures a little larger and higher definition
authorFrançois Michonneau <francois.michonneau@gmail.com>
Wed, 22 Aug 2018 19:28:49 +0000 (15:28 -0400)
committerFrançois Michonneau <francois.michonneau@gmail.com>
Wed, 22 Aug 2018 19:28:49 +0000 (15:28 -0400)
bin/chunk-options.R

index f9435842034b264d147ef9549eab7ed94b595dff..8ac95729372ae9cf1ddb8a4aa32ee1cc608ec84d 100644 (file)
@@ -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")
 }