save_plot {miRetrieve} | R Documentation |
Save the last generated figure
Description
Save the last generated figure locally.
Usage
save_plot(
plot_file,
width = NULL,
height = NULL,
units = "in",
dpi = 300,
device = NULL
)
Arguments
plot_file |
String. File name that the figure
shall be saved to. Can end in either ".png", ".tiff",
".pdf", ".jpeg", or ".bmp". For more information, see the documentation
of |
width |
Integer. Optional. Plot width. If |
height |
Integer. Optional. Plot height If |
units |
String. Units for |
dpi |
Integer. Resolution for raster graphics such as .pdf-files. |
device |
String or function. Specifies which device to use (such as
"pdf" or |
Details
Saves the last generated figure locally. Wrapper
function of ggsave()
from ggplot2. For further details, please
see ?ggplot2::ggsave.
Value
Plot, locally saved.
See Also
Other external data functions:
read_pubmed_jats()
,
read_pubmed()
,
save_excel()