Set the data directory
save_plot_data_in.Rd
Set the directory where data assocaited with plots will be saved.
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 withknitr::opts_chunk$set(plot_data_dir = dir)
. However, if you use that code, you'll need to calllibrary(ggdatasaver)
explicitly for the package to work.