Skip to contents

Set the directory where data assocaited with plots will be saved.

Usage

save_plot_data_in(dir = NULL)

Arguments

dir

A directory where to save plot data. If NULL, plot data will not be saved.

This functions sets the plot_data_dir chunk option in knitr. You can get the same behaviour with knitr::opts_chunk$set(plot_data_dir = dir). However, if you use that code, you'll need to call library(ggdatasaver) explicitly for the package to work.