GDD {GDD}R Documentation

Create a new GD graphics device for creating bitmap files

Description

GDD initializes a new GD graphics device.

Usage

GDD(file = "plot", type = "png", width = 400, height = 300, ps = 12, bg = "white")

Arguments

file prefix of the file(s) that will be created. The final filename will be of the form <file>[<sequence>].<type-extention>. The only case when no extension is appended is when the file already has that extension. The sequence number is increased with each new page.
type file format used when producing the output. The actual files are created either on close (such as via dev.off()) or when a new page is requested. Possible file formats currently include "png", "png24", "png8", "gif" and "jpeg".
width width of the plot area in pixels.
height height of the plot area in pixels.
ps initial point size.
bg plot background. For all types except for "jpeg", you can use the string "transparent" as the packground color (JPEG files do not support transparent background).

Value

The (invisible) return value is NULL if the device couldn't be created or the raw device number if successful.

Known issues

Those issues are unsolved rather due to lack of spare time than anything else - technically all of them are fairly easy to solve, given manpower. Volunteers are encouraged to contact me ;).

See Also

Examples

GDD("demo.jpeg", type="jpeg", width=800, height=600)
plot(rnorm(100),rnorm(100),col=2)
dev.off() # creates a file "plot.jpeg" with the above plot

[Package GDD version 0.1-8 Index]