Quartz: Open quartz device

Description Usage Arguments Author(s) See Also Examples

Description

Wrapper to open a quartz device with my default dimensions and graphical parameters for on-screen plotting or saving to a file.

Usage

1
Quartz(file = NULL, type = "native", height = 6, width = 8, ...)

Arguments

file

path to a file for storing a hardcopy of the plot including a supported file extension to set the type of output (e.g. ".pdf" or ".png"); i.e. the function extracts the extension from file and uses it as the type argument for the call to quartz. Defaults to NULL for on-screen plotting.

type

the type of output to use. Defaults to "native" for on-screen plotting. If file is not NULL, type is determined from its extension.

height

the height of the plotting area in inches. Default ‘6’.

width

the width of the plotting area in inches. Default ‘8’.

...

further arguments passed on to quartz.

Author(s)

Thomas Münch

See Also

quartz

Examples

1
2
3
4
5
6
7
8
9
# Create an empty on-screen quartz device
Quartz()

# Store empty plot in pdf format in local directory
## Not run: 
Quartz(file = file.path(getwd(), "test-quartz.pdf"))
dev.off()

## End(Not run)

thomas-muench/tmlibr documentation built on May 26, 2019, 10:36 a.m.