Lays out highchart widgets into a "grid", similar to grid.arrange
from gridExtra
.
grid.arrange
from gridExtra
.hw_grid( ..., ncol = NULL, rowheight = NULL, add_htmlgrid_css = TRUE, browsable = TRUE )
...
: either individual highchart
objects or a mixture of individual highchart
objects and list
s of highchart
objects.ncol
: how many columns in the gridrowheight
: 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
.charts <- lapply(1:9, function(x) { hchart(ts(cumsum(rnorm(100)))) }) if (interactive()) { hw_grid(charts, rowheight = 300) }
Useful links