PlotStamp: Add session information to plot

View source: R/PlotStamp.R

PlotStampR Documentation

Add session information to plot

Description

Add session information to an existing base plot: script name, date of plot creation, etc., placed in the upper right corner of the plot.

Usage

PlotStamp(script, add.info = NULL, incr = 0.01, cex = 0.75)

Arguments

script

character string with the name of the script used for creating the plot.

add.info

character string with additional information to be added (optional).

incr

numeric; fraction of the user coordinate range to use as incremental distance from the default position of the information text in the upper right corner of the plot region.

cex

the magnification to be used for the information text relative to the current setting of cex; defaults to 0.75.

Author(s)

Thomas Münch

Examples

plot(1 : 10, type = "l")
PlotStamp(script = "interactive",
          add.info = "Illustrated usage of PlotStamp function")

EarthSystemDiagnostics/grfxtools documentation built on Aug. 5, 2023, 1:43 p.m.