Write plots to a file
write_plot.RdWrite an svg plot to either a png, pdf or svg file.
Examples
configured_data_path <- system.file("extdata", "configured_data.Rds", package = "metainsight")
configured_data <- readRDS(configured_data_path)
tmp <- tempfile(fileext = ".png")
summary_network(configured_data = configured_data,
style = "netgraph") |>
write_plot(tmp)
unlink(tmp)