| lc50_export_plot | R Documentation |
Saves one plot or a list of plots from lc50_plot, like
ggsave(path, plot, device = "tiff", width = 12, height = 8,
dpi = 300, units = "cm", bg = "white") but with the dpi handling of
lc50_plot applied. The same plot object can be written at any
dpi without being re-created.
lc50_export_plot(
plot,
path = NULL,
device = "tiff",
width = 12,
height = 8,
dpi = 300,
units = "cm",
bg = "white",
...
)
plot |
A ggplot or a (named) list of ggplots. |
path |
Output file (single plot) or folder (list of plots, or a
path without extension); |
device, width, height, units, bg |
Passed on to |
dpi |
Resolution of the written file (default 300). |
... |
Further arguments passed on to |
Path(s) of the written file(s), invisibly.
lc50_plot, lc50_export
f <- system.file("extdata", "lc50_example.csv", package = "insectecol")
plots <- lc50_plot(lc50_calculate(lc50_read(f)))
lc50_export_plot(plots$bioassay, file.path(tempdir(), "LC50_demo.tiff"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.