Time Stamp Output, Graph, and Audit File

DESCRIPTION:

Prints a message (the date and time by default) on the audit file and optionally on the terminal and the current plot.

USAGE:

stamp(string=date(), print=T, plot=T) 

OPTIONAL ARGUMENTS:

string
character string to be printed. The default is the current date and time in the form returned by the date function:

Tue Jun 1 14:00:16 EDT 1988.
print
should string be printed on the terminal?
plot
should string be plotted in the lower right corner of the current plot? The default is TRUE if a graphical device has been specified.

SIDE EFFECTS:

string is put in the audit file, and is plotted on the current graphical device (if plot=TRUE) as well as appearing on the terminal (if print=TRUE).

DETAILS:

The stamp function makes it easy to identify the functions used to create a plot or display.

SEE ALSO:

, AUDIT, , .

EXAMPLES:

x <- c(1:10)
y <- c(1:10)
plot(x, y) 
stamp()  # puts date and time on the plot 
stamp(paste("project X", date())) # puts project name, date, and time on plot