save_plot: Save Plot

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/ares.r

Description

Conveniently save the active plot window to some known graph file format

Usage

1
save_plot(file, width = 520, height = 480)

Arguments

file

quoted string with the file name

width

width in pixels

height

height in pixels

Details

This function tries to guess the filter to use from the file name extension. Supported graph formats are portable bitmap (png), jpeg (jpg), portable document format (pdf), encapsulated post script (eps), and scalable vector graphics (svg). If off is set to TRUE, the active window device is closed after the graph is saved.

Alternatively, one can use the R native savePlot that essentially does the same job.

Value

This function does not return a value.

Author(s)

Washington Junger wjunger@ims.uerj.br and Antonio Ponce de Leon ponce@ims.uerj.br

See Also

dev.copy,dev.copy2eps

Examples

1
2
3
4
data(admrio)
setup(admrio,"date")
plot_event("resp5")
save_plot("plot_resp5.png")

wjunger/ares documentation built on Dec. 23, 2021, 5:17 p.m.