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

Description Usage Arguments Examples

View source: R/hw_grid.R

Description

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

Usage

1
2
3
4
5
6
7
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

1
2
3
4
5
6
7
charts <- lapply(1:9, function(x) {
  hchart(ts(cumsum(rnorm(100))))
})

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

highcharter documentation built on Jan. 3, 2022, 5:08 p.m.