save_data: Saves data underlying a ggplot

Description Usage Arguments Value

Description

Helper function that saves the data used to create a gglot. This should help reproducing plots.

Usage

1
save_data(filename, plot = last_plot())

Arguments

filename

Base file name/path

plot

= last_plot() The ggplot for which the data will be saved

Value

a file is saved


adomingues/makeitprettier documentation built on June 28, 2019, 9:47 a.m.