Learn R Programming

reportRx (version 1.0)

forestplot: Create a forrest plot

Description

Create a forrest plot. All entires with cutoff=T will be plotted with an NA rather than their original value.

Usage

forestplot(data, xlab = NULL, ylab = NULL, main = NULL, space = 0, bool = F, xlim = NULL)

Arguments

data
dataframe containing data
xlab
String corresponding to xlabel. By default is set to names(data)[2]
ylab
String corresponding to ylabel. By default is set to names(data)[1]
main
String corresponding to main title. By default is set to "Forest plot for subgroup analysis"
space
numeric corresponding to offset of y label. Should be positive if y label is on top of the names of the y axis
bool
A boolean vector. All entries with T will be invisible in the plot
xlim
vector of length 2 corresponding to limits of x-axis. Default to NULL.