prFpFetchRowLabel: Get the label

View source: R/private.R

prFpFetchRowLabelR Documentation

Get the label

Description

A function used for fetching the text or expression from the supplied labeltext.

Usage

prFpFetchRowLabel(label_type, labeltext, i, j)

Arguments

label_type

The type of label

labeltext

A list, matrix, vector or expression with the names of each row or the name of the column if using the dplyr select syntax - defaults to "labeltext". Note that when using group_by a separate labeltext is not allowed. 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 provide a matrix although this cannot have expressions by design: matrix(c("rowname 1 col 1", "rowname 2 col 1", "r1c2", "beta"), ncol = 2). Use NA:s for blank spaces and if you provide a full column with NA then that column is a empty column that adds some space. Note: If you do not provide the mean/lower/upper arguments the function expects the label text to be a matrix containing the labeltext in the rownames and then columns for mean, lower, and upper.

i

The row

j

The column

Value

An expression or a text


forestplot documentation built on Oct. 11, 2024, 5:07 p.m.