Wrapper around `ggsave` to save figures.

save_fig(
  plt,
  experiment_name,
  fname,
  type = "cairo",
  device = "png",
  dpi = 600,
  width = 4,
  height = 4,
  ...
)

Arguments

plt

The plot object.

experiment_name

The experiment name.

fname

The file name including extension.

type

Type passed to `ggsave`

device

Device passed to `ggsave` (default: "png")

dpi

dpi passed to `ggsave`

width

width of the plot (default units are inches)

height

height of the plot (default units are inches)

...

Other arguments passed to `ggsave`.