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

Value

A container div in rmarkdown, otherwise browsable

Examples


if (interactive()) {
  p1 <- cars %>% ec.init()
  p2 <- cars %>% ec.init() %>% ec.theme('dark')
  ec.layout(list(p1,p2), cols=2 )
}


[Package echarty version 0.2.0 Index]