sbf_save_plot.Rd
Saves a ggplot object. By default it saves the last plot to be modified or created.
sbf_save_plot(
x = ggplot2::last_plot(),
x_name = substitute(x),
sub = sbf_get_sub(),
main = sbf_get_main(),
caption = "",
report = TRUE,
tag = "",
units = "in",
width = NA,
height = width,
dpi = 300,
limitsize = TRUE,
csv = 1000L
)
The ggplot object to save.
A string of the name.
A string specifying the path to the sub folder (by default the current sub folder).
A string specifying the path to the main folder (by default the current main folder)
A string of the caption.
A flag specifying whether to include in a report.
A string of the tag.
A string of the units. Can be "in" (default) or "mm" or "cm".
A number of the plot width in inches.
A number of the plot width in inches.
A number of the resolution in dots per inch.
When TRUE
(the default), ggsave()
will not
save images larger than 50x50 inches, to prevent the common error of
specifying dimensions in pixels.
A count specifying the maximum number of rows to save as a csv file.
Other save functions:
sbf_basename_sans_ext()
,
sbf_save_aws_files()
,
sbf_save_block()
,
sbf_save_data()
,
sbf_save_data_to_db()
,
sbf_save_data_to_pg()
,
sbf_save_datas()
,
sbf_save_datas_to_db()
,
sbf_save_db_metatable_descriptions()
,
sbf_save_db_to_workbook()
,
sbf_save_excel()
,
sbf_save_excels()
,
sbf_save_gpkg()
,
sbf_save_gpkgs()
,
sbf_save_number()
,
sbf_save_numbers()
,
sbf_save_object()
,
sbf_save_objects()
,
sbf_save_png()
,
sbf_save_string()
,
sbf_save_strings()
,
sbf_save_table()
,
sbf_save_window()
,
sbf_save_workbook()