Saves a png file to the windows.

sbf_save_png(
  x,
  x_name = sbf_basename_sans_ext(x),
  sub = sbf_get_sub(),
  main = sbf_get_main(),
  caption = "",
  report = TRUE,
  tag = "",
  width = NA,
  units = "in"
)

Arguments

x

A string of the path to the png file to save.

x_name

A string of the name.

sub

A string specifying the path to the sub folder (by default the current sub folder).

main

A string specifying the path to the main folder (by default the current main folder)

caption

A string of the caption.

report

A flag specifying whether to include in a report.

tag

A string of the tag.

width

A number of the plot width in inches.

units

A string of the units. Can be "in" (default) or "mm" or "cm".