addTitle: Add a Title

View source: R/addTitle.R

addTitleR Documentation

Add a Title

Description

Adds a title (also called heading) to a graph.

Usage

addTitle(Main = "", Heading = "", Justification = "left",
  Bold = TRUE, Position = "above")

Arguments

Main

the main text of the title. Can be either a character string or an "expression" object. If Main is an "expression" object, then Heading and Bold will be ignored.

Heading

The title heading, generally a single letter. See Details

Justification

specify the horizontal location of the title, must be one of "left," "center," or "right."

Bold

logical, if TRUE, then display the title in bold face type.

Position

specify the vertical location of the title, must be either "above" or "inside."

Details

If only Heading is non blank, then the title is a single letter in bold italics. If both Heading and Main are non blank, then the title is a single letter followed by a period in bold italics followed by Main in bold if Bold is TRUE.

Value

Nothing is returned.

See Also

addCaption, addAnnotation, addTable

Examples

## Not run: 
set.seed(1)
X <- rnorm(32)
Y <- X + rnorm(32)
setGD()
AA.pl <- xyPlot(X, Y)
addTitle("X and Y")
# For more details of addTitle see
vignette(topic="BoxPlots", package="smwrGraphs")
vignette(topic="GraphGallery", package="smwrGraphs")
vignette(topic="GraphSetup", package="smwrGraphs")

## End(Not run)

USGS-R/smwrGraphs documentation built on Oct. 11, 2022, 6:11 a.m.