c19_save_all: Calls output funcs with some default params.

Description Usage Arguments See Also Examples

View source: R/utils.R

Description

Output files will be located in c19bg/plots/save under current working directory. Downloaded and calculated data will be stored in c19bg/data.

Usage

1
2
3
4
5
6
7
8
9
c19_save_all(
  file_ext = ".svg",
  dpi = 125,
  funs = c("c19_var_plot_save", "c19_heat_save", "c19_oblasts_save",
    "c19_eu_plots_save", "c19_r_plot_save"),
  dl = TRUE,
  rl = TRUE,
  ...
)

Arguments

file_ext

extension (e.g. ".svg", ".png", ".jpg")

dpi

dots per inch

funs

functions to call (default: all)

dl

whether to refresh all data sets from the Internet

rl

whether to refresh all data sets from disk

...

passed to individual save functions

See Also

Other output funcs: c19_eu_plots_save(), c19_heat_save(), c19_inkmagick(), c19_oblasts_save(), c19_r_plot_save(), c19_var_plot_save()

Examples

1
2
3
4
5
6
7
8
## Not run: 
c19_save_all() # default is ".svg"
c19_save_all(file_ext = ".png")
c19_save_all(file_ext = ".jpg", quality = 100)
c19_save_all(file_ext = ".jpg", w = 10, h = 10, dpi = 200) #2000x2000px
c19_save_all(file_ext = ".png", dpi = 300)

## End(Not run)

StanTraykov/c19bg documentation built on Nov. 2, 2021, 4:46 a.m.