stamp: Add a "Stamp", i.e., an Identification Line to a Plot

Description Usage Arguments Details Value Author(s) Examples

Description

A line is added to the current plot in the lower right corner that contains project information and date.

Usage

1
2
3
stamp(sure = TRUE, outer.margin = NULL,
      project = getUserOption("project"), step=getUserOption("step"),
      stamp = getUserOption("stamp"), ...)

Arguments

sure

if FALSE, the stamp will only be added if getUserOption("stamp")>0

outer.margin

if TRUE, the stamp is put to the outer margin of the plot. This is the default if the plot is currently split into panels.

project, step

character string describing the project and the step of analysis.

stamp

controls default action, see details

...

arguments passed to mtext

Details

The function is used to document plots produced during a data analysis. It is called by all plotting functions of this package. For getting final presentation versions of the plots, the stamp can be suppressed by changing the default by calling options(stamp=0).

In more detail: If stamp==0 (or getUserOption("stamp")==0) the function will only do its thing if sure==TRUE.

If stamp==2, it will certainly do it.

If stamp==1 and sure==FALSE, the stamp is added when a plot page is complete.

Value

invisibly returns the string that is added to the plot – consisting of project title, step title and current date (including time).

Author(s)

Werner A. Stahel, ETH Zurich

Examples

1
2
3
userOptions(project="Example A",  step="regression analysis")
plot(1:10)
stamp() ##-> "stamp" at bottom of right border

regr0 documentation built on May 2, 2019, 4:52 p.m.