forestplot: Forest plot for data

Description Usage Arguments Examples

View source: R/forestplot.R

Description

Forest plot for data

Usage

1
2
3
forestplot(data, x, y, xmin, xmax, save = NULL, facet = NULL,
  Aesthetic_names = NULL, shape = NULL, color = NULL, xlim = NULL,
  xlab = NULL, ylab = NULL, titles = NULL, main = NULL)

Arguments

data

A list of data frames which have same structure.

x

A x-axis variable,character type.

y

A y-axis variable,character type.

xmin

A lower confidence level variable,character type.

xmax

A lower confidence level variable,character type.

save

Save a png file using name as save.

facet

Either a formula or character vector to wraps a 1d sequence of panels into 2d. Use either a one sided formula, ~a + b, or a character vector, c("a", "b").

Aesthetic_names

A variable determines aesthetics including color and shape,character type.

shape

a list of point shape match to Aesthetic_names.

color

a list of color match to Aesthetic_names.

xlim

the scale of x-axis, c(low, high).

xlab

the label of x-axis, character type.

main

a main title of plot.

title

if there are multi-plots will be drawn, this list includes the title of each plot, eg., c('0' = "Zero", '1' = "One").

Examples

1
2
3
   data(Forest)
   head(Forest)
   forestplot(Forest,x="Estimate",y="Var",xmin = "Conf.low", xmax = "Conf.high",Aesthetic_names = "P")

ShouyeLiu/metaboliteUtility documentation built on May 6, 2019, 9:07 a.m.