From a2df8718a8ce1814d5eb2339b24eea463ea8e5d0 Mon Sep 17 00:00:00 2001 From: hadley Date: Mon, 7 Dec 2015 15:57:36 -0600 Subject: [PATCH] Hack to fix figure rendering for eda & visualize chapters --- eda.Rmd | 4 ++++ visualize.Rmd | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/eda.Rmd b/eda.Rmd index d982390..86aef0f 100644 --- a/eda.Rmd +++ b/eda.Rmd @@ -6,6 +6,10 @@ output: bookdown::html_chapter ```{r, include = FALSE} library(ggplot2) +knitr::opts_chunk$set( + cache = TRUE, + fig.path = "figures/" +) ``` ## Exploratory Data Visualization diff --git a/visualize.Rmd b/visualize.Rmd index 6c4405c..12f7585 100644 --- a/visualize.Rmd +++ b/visualize.Rmd @@ -4,8 +4,11 @@ title: Data Visualization output: bookdown::html_chapter --- -```{r setup, include=FALSE, message=FALSE} -knitr::opts_chunk$set(cache = TRUE) +```{r setup, include = FALSE} +knitr::opts_chunk$set( + cache = TRUE, + fig.path = "figures/" +) ``` # Visualize Data