Create a table-only widget without the forest plot visualization.

Usage

webtable(
  x,
  ...,
  zoom = 1.0,
  auto_fit = TRUE,
  max_width = NULL,
  max_height = NULL,
  show_zoom_controls = TRUE,
  width = NULL,
  height = NULL,
  elementId = NULL
)

Arguments

Argument Description
x A data frame or WebSpec object
... Arguments passed to web_spec() when x is a data frame
zoom Initial zoom level (0.5 to 2.0, default 1.0)
auto_fit Shrink to fit container if too large (default TRUE)
max_width Maximum container width in pixels (NULL for none)
max_height Maximum container height in pixels (NULL for none)
show_zoom_controls Show zoom controls on hover (default TRUE)
width Widget width
height Widget height
elementId HTML element ID

Value

An htmlwidget object displaying the table portion without the forest plot.

Examples

Basic Table

Code
data <- data.frame(
  study = c("Study A", "Study B", "Study C"),
  hr = c(0.72, 0.85, 0.91),
  lower = c(0.55, 0.70, 0.75),
  upper = c(0.95, 1.03, 1.10),
  n = c(245, 180, 320),
  pval = c(0.018, 0.092, 0.31)
)

webtable(data,
  point = "hr", lower = "lower", upper = "upper",
  label = "study",
  columns = list(
    col_numeric("n", "N"),
    col_interval("HR (95% CI)"),
    col_pvalue("pval", "P-value")
  )
)

See Also