hw_grid: Lays out highchart widgets into a "grid", similar to...

View source: R/hw_grid.R

hw_gridR Documentation

Lays out highchart widgets into a "grid", similar to grid.arrange from gridExtra.

Description

Lays out highchart widgets into a "grid", similar to grid.arrange from gridExtra.

Usage

hw_grid(
  ...,
  ncol = NULL,
  rowheight = NULL,
  add_htmlgrid_css = TRUE,
  browsable = TRUE
)

Arguments

...

either individual highchart objects or a mixture of individual highchart objects and lists of highchart objects.

ncol

how many columns in the grid

rowheight

Height in px.

add_htmlgrid_css

A logical value to add or not htmlgrid.css as dependency.

browsable

Logical value indicating if the returned object is converted to an HTML object browsable using htmltools::browsable.

Examples


charts <- lapply(1:9, function(x) {
  hchart(ts(cumsum(rnorm(100))))
})

if (interactive()) {
  hw_grid(charts, rowheight = 300)
}

jbkunst/highcharter documentation built on March 14, 2024, 12:52 a.m.