Learn R Programming

loon (version 1.4.3)

l_export: Export a loon plot as an image

Description

The supported image formats depend on your system and Tcl/Tk configuration. Export to PostScript (`.ps`, `.eps`) always works. Export to PDF (`.pdf`) works if the command-line tool `epstopdf` is installed. Export to bitmap formats such as `.png`, `.jpg`, `.bmp`, `.tiff`, or `.gif` may work if supported by your Tcl/Tk environment — this often, but not always, requires the Img Tcl extension.

If a selected format fails, use `.ps` or consider capturing a screenshot.

Usage

l_export(widget, filename, width, height)

Value

The file path of the exported image.

Arguments

widget

widget path as a string or as an object handle

filename

path of output file

width

image width in pixels

height

image height in pixels

Details

Pressing `Ctrl-P` in a loon plot window also opens an interactive export dialog.

See Also

l_export_valid_formats, plot.loon