Learn R Programming

lmSupport (version 2.9.13)

figPlotRegion: Sets up a plot region for later plotting

Description

Sets up a plot region for later plotting with fig functinos. Typically use is to establish the x and y ranges for region and otherwise leave blank for later drawing with fig functions.

Usage

figPlotRegion(x, y, xlab = NA, ylab = NA, axes=FALSE, type='n')

Arguments

x,y

min and max for x and y plot region

xlab, ylab

Labels for x and y axes. Typically left blank (NA)

axes

a logical value indicating whether both axes should be drawn on the plot. Typically not included (FALSE)

type

1-character string giving the type of plot desired. Typically no data are plotted ('n'). see type in plot() for more info

Value

None

See Also

plot(), 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))
# }

Run the code above in your browser using DataLab