expandGraph {PBSmodelling}R Documentation

Expand Plot Area by Adjusting Margins

Description

Tries to maximize the area of multiple plots by minimizing margins.

Usage

expandGraph(mar=c(4,3,1.2,0.5), mgp=c(1.6,.5,0),...)

Arguments

mar numerical vector of the form 'c(bottom, left, top, right)' specifying the margins of the plot
mgp numerical vector of the form 'c(axis title, axis labels, axis line)' specifying the margins for axis title, axis labels, and axis line
... Additional graphical parameters to be passed to par()

See Also

resetGraph

par

Examples

resetGraph()
expandGraph(mfrow=c(2,1))

tt=seq(from=-10, to=10, by=0.05)

plot(tt,sin(tt), xlab="this is the x label",  ylab="this is the y label", 
     main="main title", sub="sometimes there is a \"sub\" title")
plot(cos(tt),sin(tt*2), xlab="cos(t)", ylab="sin(2 t)", main="main title", 
     sub="sometimes there is a \"sub\" title")

[Package PBSmodelling version 0.60 Index]