make_arrow: Make arrow

View source: R/make-arrow.R

make_arrowR Documentation

Make arrow

Description

Make arrow

Usage

make_arrow(x0 = 1, arrow_lab, arrow_gp, col_width, xlim, x_trans = "none")

Arguments

x0

Position of vertical line for 0 or 1.

arrow_lab

Labels for the arrows, string vector of length two (left and right). The theme of arrow will inherit from the x-axis. This should be a list if different arrow labels for each column is desired.

arrow_gp

Graphical parameters for arrow.

col_width

Width of the column arrow to be fitted.

xlim

Limits for the x axis as a vector of length 2, i.e. c(low, high). It will take the minimum and maximum of the lower and upper value if not provided. This will apply to all CI columns if provided, and will be calculated automatically for each column if not provided. This should be a list with the same length of ci_column if different xlim for different column is desired.

x_trans

Change axis scale, Allowed values are one of c("none", "log", "log2", "log10"). Default is "none", no transformation will be applied. The formatted label will be used for scale = "log2" or "log10", change this in x_trans. Set this to "log" if x-axis tick marks assume values are exponential, e.g. for logistic regression (OR), survival estimates (HR), Poisson regression etc.


forestploter documentation built on May 29, 2024, 5:48 a.m.