Usage
legendg(x,y=NULL,legend,fill=NULL,col=par("col"),
border="black",lty,lwd,pch=NULL,angle=45,density=NULL,
bty="o",bg=par("bg"),box.lwd=par("lwd"),box.lty=par("lty"),
box.col=par("fg"),pt.bg=NA,cex=1,pt.cex=cex,pt.lwd=lwd,
pt.space=1,xjust=0,yjust=1,x.intersp=1,y.intersp=1,
adj=c(0,0.5),text.width=NULL,text.col=par("col"),merge=FALSE,
trace=FALSE,plot=TRUE,ncol=1,horiz=FALSE,title=NULL,
inset=0,xpd,title.col=text.col)
Arguments
x,y
Position of the legend as in legend.
legend
Labels for the legend as in legend.
fill
List of fill colors for the rectangles.
col
Color(s), perhaps as a list, for the symbols.
border
Border color for the rectangles.
lty
Line type, currently ignored and set to 1.
lwd
Line width, currently ignored.
pch
List of symbols for the legend.
angle,density
Currently ignored.
bty
Legend box type to be displayed.
bg
Background color for the legend.
box.lwd,box.lty,box.col
Line width, type and color
for the surrounding box.
cex
Character expansion for text.
pt.bg,pt.cex,pt.lwd
Background color, character
expansion and line width for the symbols.
pt.space
Spacing for the symbols as a multiplier
for strwidth("O").
xjust,yjust
Justification for the legend.
x.intersp,y.intersp
x and y character spacing for
the legend text.
text.width,text.col
Width and color of the legend text.
merge
Whether to merge points and lines.
trace
Show how the legend is calculated.
plot
Whether to plot the legend.
ncol
Number of columns in the legend.
horiz
Whether to display a horizontal legend.
title
Title for the legend.
inset
Inset distances for use with keywords.
xpd
An optional value for par(xpd=).
title.col
Color for the legend title.