Learn R Programming

forestplot (version 1.0)

prFpGetLabels: Gets the forestplot labels

Description

A function that gets all the labels

Usage

prFpGetLabels(label_type, labeltext, align, nc, nr, is.summary, txt_gp, col)

Arguments

label_type
The type of text labels
labeltext
A list, matrix, vector or expression with the names of each row. The list should be wrapped in m x n number to resemble a matrix: list(list("rowname 1 col 1", "rowname 2 col 1"), list("r1c2", expression(beta)). You can also provid
align
Alignment, should be equal to length(nc
nc
Number of columns
nr
Number of rows
is.summary
A vector indicating by TRUE/FALSE if the value is a summary value which means that it will have a different font-style
txt_gp
Set the fonts etc for all text elements. See fpTxtGp for details
col
Set the colors for all the elements. See fpColors for details

Value

  • list A list with length(nc) where each element contains a list of length(nr) elements with attributes width/height for each element and max_width/max_height for the total