addTitle | R Documentation |
Adds a title (also called heading) to a graph.
addTitle(Main = "", Heading = "", Justification = "left", Bold = TRUE, Position = "above")
Main |
the main text of the title. Can be either a character string or an
"expression" object. If |
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 |
Position |
specify the vertical location of the title, must be either "above" or "inside." |
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
.
Nothing is returned.
addCaption
, addAnnotation
,
addTable
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.