Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


lmSupport (version 2.9.13)

figLayout: Wrapper for standarized use of layout()

Description

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

Usage

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

See Also

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

Examples

Run this code
# NOT RUN {
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))
# }

Run the code above in your browser using DataLab