Wrapper around `ggsave` to save figures.
save_fig(
plt,
experiment_name,
fname,
type = "cairo",
device = "png",
dpi = 600,
width = 4,
height = 4,
...
)
The plot object.
The experiment name.
The file name including extension.
Type passed to `ggsave`
Device passed to `ggsave` (default: "png")
dpi passed to `ggsave`
width of the plot (default units are inches)
height of the plot (default units are inches)
Other arguments passed to `ggsave`.