plot.cima: Plot Results

Description Usage Arguments Examples

View source: R/cima-.r

Description

A function for plotting of 'cima' objects.

Usage

1
2
3
4
## S3 method for class 'cima'
plot(x, y = NULL, title = "Forest plot",
  base_size = 16, base_family = "", digits = 3, studylabel = NULL,
  ntick = NULL, trans = c("identity", "exp"), ...)

Arguments

x

'cima' object to plot

y

is not used

title

graph title

base_size

base font size

base_family

base font family

digits

a value for digits specifies the minimum number of significant digits to be printed in values.

studylabel

labels for each study

ntick

the number of x-axis ticks

trans

transformation for logarithmic scale outcomes ("identity" [default] or "exp").

...

further arguments passed to or from other methods.

Examples

1
2
3
4
5
data(sbp, package = "pimeta")
ciex <- pimeta::cima(sbp$y, sbp$sigmak, method = "DL")
cairo_pdf("forestplot.pdf", width = 6, height = 3, family = "Arial")
plot(ciex, digits = 2, base_size = 10, studylabel = sbp$label)
dev.off()

pimeta documentation built on Sept. 17, 2019, 5:03 p.m.