Skip to contents

Passed to rect. If the xright, xleft, ytop and ybottom are not given, the whole plotting region is used. With no argument, the default col = rgb(.1,.1,.1,.1) is used.

Usage

header_stripes(fobj, item = NULL, ...)

Arguments

fobj

a forest plot object of class 'fobj' or 'cfobj'

item

if only the header above an item should be modified, either a number with the position in layout or the name of the column in fobj$dat. If NULL (the default), the whole header is affected.

...

options to be passed to rect

Value

a forest plot object of class 'fobj'

Examples


fobj<-genfobj(layout = c("ttttttft"),
  dat = forplotdata,
lwidths = c(0.8,0.4,0.6,0.4,0.6,1,1,0.5))
#Add default background color:
fobj<-header_stripes(fobj = fobj)
plotfobj(fobj)


#Other color
fobj<-header_stripes(fobj = fobj, col = rgb(1,0,0,0.1))
plotfobj(fobj)