Learn R Programming

highcharter (version 0.9.4)

hw_grid: 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

Run this code
# NOT RUN {
charts <- lapply(1:9, function(x) {
  hchart(ts(cumsum(rnorm(100))))
})

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

Run the code above in your browser using DataLab