Learn R Programming

lmSupport (version 2.9.13)

figText: Wrapper for standarized use of text()

Description

Wrapper function for standardized use of text() with lab defaults for display

Usage

figText(x, y, label, text.font = NULL, text.cex = NULL, text.adj = NULL, text.col=NULL)

Arguments

x,y

coordinates to plot text

label

label/text to plot

text.font

Text font. Accessed from options if NULL

text.cex

Text cex. Accessed from options if NULL

text.adj

Text adj. Accessed from options if NULL

text.col

Text color. Accessed from options if NULL

Value

None

See Also

lines(), figLabDefaults(), figSetDefaults(), figNewDevice(), figLines(),figPoints()

Examples

Run this code
# NOT RUN {
figNewDevice()
figPlotRegion(x=c(0,5), y=c(0,10))
figLines(c(0,10),c(0,10))
figAxis(side=1,lab.text='X-axis 1', scale.at=seq(from=0,to=10,by=2))
figAxis(side=2,lab.text='Startle Response', scale.at=seq(from=0,to=10,by=2))
figText(0,9, 'Figure label')
# }

Run the code above in your browser using DataLab