powered by
Exports the dtGAP plot to PNG, PDF, or SVG format.
save_dtGAP( file, format = NULL, width = 297, height = 210, dpi = 300, bg = "white", ... )
Invisible file path of the created file.
Character. Output file path. The format is inferred from the file extension unless format is specified explicitly.
format
Character or NULL. One of "png", "pdf", or "svg". If NULL (default), inferred from file extension.
"png"
"pdf"
"svg"
file
Numeric. Page width in mm (default 297, A4 landscape).
Numeric. Page height in mm (default 210, A4 landscape).
Numeric. Resolution for PNG output (default 300). Ignored for PDF and SVG.
Character. Background color (default "white").
"white"
Additional arguments passed to dtGAP().
dtGAP()
# \donttest{ save_dtGAP( file = tempfile(fileext = ".png"), data_train = train_covid, data_test = test_covid, target_lab = "Outcome", show = "test", print_eval = FALSE ) # }
Run the code above in your browser using DataLab