figLayout: Wrapper for standarized use of layout()

Description Usage Arguments Value Author(s) See Also Examples

Description

Wrapper function for standardized use of layout() and layout.show()

Usage

1
2
figLayout(nRows, nCols, heights=rep(1,nRows), widths=rep(1,nCols), 
       layout.display=NULL)

Arguments

nRows, nCols

integers specifying number of rows and columns in matrix

heights

vector indicating relative heights of rows; Default is equal heights

widths

vector indicating relative widtsh of columns; Default is equal widths

layout.display

Boolean if outlines and numbers of panels should be displayed

Value

None

Author(s)

John J. Curtin jjcurtin@wisc.edu

See Also

layout(), layout.show(), figLabDefaults(), figSetDefaults(), figNewDevice(), figLines(),figLines()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
X = rep(2:9,4)+jitter(rep(0,32))
Y = X + rnorm(length(X),0,5)
m = lm(Y ~ X)
dNew = data.frame(X=seq(2,9,by=.01))
p = modelPredictions(m,dNew)

figNewDevice()  
figLayout(2,1)
figPlotRegion(x=c(0,10),y=c(0,10))
figConfidenceBand(p$X,p$Predicted,p$CILo,p$CIHi)
figLines(p$X,p$Predicted)
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))

figPlotRegion(x=c(0,10),y=c(0,10))
figPoints(X,Y)
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))

lmSupport documentation built on May 2, 2019, 2:14 p.m.