ec.layout {echarty}R Documentation

Charts layout

Description

Set multiple charts in rows/columns format

Usage

ec.layout(plots, rows = NULL, cols = NULL, width = "xs", title = NULL)

Arguments

plots

A list of charts

rows

Number of rows

cols

Number of columns

width

Width of columns, one of xs, md, lg

title

Title for the set

Details

For 3-4 charts one would use multiple series with a grid.
For greater number of charts ec.layout come in handy.

Value

A container div in rmarkdown, otherwise browsable

Examples

options(browser = 'firefox')
tmp <- lapply(list('dark','macarons','gray','jazz','dark-mushroom'),
              function(x) cars |> ec.init() |> ec.theme(x) )
ec.layout(tmp, cols=2 )


[Package echarty version 1.4.5 Index]