addVersion: Adds version watermark to a plot

View source: R/version.R

addVersionR Documentation

Adds version watermark to a plot

Description

Adds the version and, if installed from Github, the first part of the SHA commit code

Usage

addVersion(v = NULL, cex = 0.5, col = "#12345655", lengthSHA = 6,
  description = NULL)

Arguments

v

character vector, version(s) to add to plot

cex

numeric, controls the font size

col

A color code or name

lengthSHA

integer, amount of characters to be printed

description

character vector, same length as x, description of each version

Details

All versions in the v vector are added to the current plot, each with a discription from description if it is not NULL.

If v is NULL, the version returned by the internal function getVersion is used.

Value

Invisible NULL

Author(s)

alko

See Also

"Color specification" in the documentation of par

Examples


hist(simulateData3()$sample)
addVersion()


alko989/s6model documentation built on Nov. 2, 2023, 10:04 p.m.