Convert a ggplot, data frame or tibble to a file in a temporary location, and return the file path. The file name will be based on the variable name of the object, and will be given an extension that corresponds to the method by which the file was saved. If a file path corresponding to an existing file is given, then that file path is returned.
1 2 |
obj |
Either a ggplot, data frame, tibble, or valid file path. |
data_file_format |
Preferred format for data frames/tibbles when saved to a file. |
col_names |
Determines if column names (headers) are to be included. Defaults to TRUE. |
image_file_format |
Preferred format for ggplots and images when saved to a file. |
file_name |
Sets the name of the saved file, without the extension. If this isn't provided, the name of the 'data' variable will be used. "." |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.